Support for `upstream` sections.
Opened this issue · 2 comments
chakrit commented
Refer to the docs: http://nginx.org/en/docs/http/ngx_http_upstream_module.html
Use cases:
- When using Nginx to resolve virtual hosts to different ports/servers/upstreams.
- When using Nginx as a reverse-proxy to handle caching and other HTTP shenanigans.
kenperkins commented
If I'm reading this correctly, that means that currently I can't setup a reverse proxy to an alternate backend service?
smilledge commented
+1
If you just need to setup a reverse proxy the following should work;
nginx_sites:
- server:
file_name: example.com
listen: 80
server_name: example.com
location1:
name: /
proxy_pass: "http://127.0.0.1:8080/"