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

Custom Nginx Configuration documentation #2018

Open
ilium007 opened this issue Jul 18, 2022 · 0 comments
Open

Custom Nginx Configuration documentation #2018

ilium007 opened this issue Jul 18, 2022 · 0 comments
Labels
type/docs PR with documentation only changes

Comments

@ilium007
Copy link

ilium007 commented Jul 18, 2022

It looks like the default /etc/nginx/proxy.conf file should have one extra line not in the doco.

This line is present in the default config on a new nginx-proxy container:

# HTTP 1.1 support
proxy_http_version 1.1;
proxy_buffering off;
proxy_set_header Host $http_host;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $proxy_connection;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $proxy_x_forwarded_proto;
proxy_set_header X-Forwarded-Ssl $proxy_x_forwarded_ssl;
proxy_set_header X-Forwarded-Port $proxy_x_forwarded_port;

proxy_set_header X-Original-URI $request_uri;                 #<<<<<<<<< this line

# Mitigate httpoxy attack (see README for details)
proxy_set_header Proxy "";
@tkw1536 tkw1536 added the type/docs PR with documentation only changes label Jul 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/docs PR with documentation only changes
Projects
None yet
Development

No branches or pull requests

2 participants