Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ngrest and proxy #71

Open
atari83 opened this issue Feb 19, 2021 · 1 comment
Open

ngrest and proxy #71

atari83 opened this issue Feb 19, 2021 · 1 comment

Comments

@atari83
Copy link

atari83 commented Feb 19, 2021

Hello there,

I've a scenario and need your input about its development feasibility with ngrest.

So, we're using nginx as webserver, and would like to develop a rest service module for it by ngrest.

The rest service receives requests (POST method) from various clients. Normally it has to validate the incoming requests (body and headers), and may send response with error to clients in case of malformed or mistakes in requests.

If validation passed, then my webserver need to act as proxy, so basically request has to be forwarded to other webserver(s) to process and my webserver has to deliver the response back to client.

Could you please elaborate on this request and it's implementation. Specially the proxy function. What should i consider with ngrest module development and nginx configuration.

Thanks

@JL2014
Copy link

JL2014 commented Sep 29, 2022

Hi @atari83,

Sorry for late response, but Nginx in front of ngrest already do the job.
See https://serverfault.com/questions/480241/nginx-failover-without-load-balancing for example.

Greetings, JL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants