Fixes for Reverse Proxy Go-Live (#6)

* Add new area for defining upstream systems.

* Example file for demonstration domain.

* Use the new upstream hosts section.

* Do the proxy directives in the main file.

* Commit any final changes.

* Fix example resource name.

* Mention the need to have ports specified in the upstream file, not server block.

* Adjust formatting.
This commit is contained in:
2023-07-09 16:02:47 -07:00
committed by GitHub
parent 7d540e81a4
commit 3c46dfec01
6 changed files with 46 additions and 8 deletions

View File

@ -38,13 +38,6 @@ server {
# Send traffic to upstream server
location / {
proxy_set_header X-Forwarded-Proto https;
# These cause "400 Bad Request Request Header Or Cookie Too Large"?
#proxy_set_header Host $host;
#proxy_set_header X-Real-IP $remote_addr;
#proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
## General format is PROTOCOL://SERVER:PORT. For example:
#
# If using a domain name:
@ -53,6 +46,9 @@ server {
# If using an IP address:
#proxy_pass http://192.168.1.80:8080;
#
# If using an upstream server:
#proxy_pass http://example-proxy-site;
#
# If forwarding to an external source:
#proxy_pass https://website.name;
#