-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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 - proxy_set_header Host #1003
Comments
Any update? I have same issue running flask and odoo behind NPM. I cant see client IP and others headers |
Same here, got the same issue with another docker image running remotely.one. I'm also having additional issues with NPM not setting additional configuration under the custom config, wondering if this is an issue with the custom configuration in UI itself. I've tried to also set additional header info as seen below but when I test for the CSP - these come back as fail from external testing on top of the Client IP and other headers add_header Content-Security-Policy "upgrade-insecure-requests"; |
There's a warning about this right underneath the text box where you add these custom configs:
|
add a custom location '/' and add the header in the custom config :proxy_set_header Host $http_host;
|
I have walked the same road when I just noticed that a possible solution has been suggested in #1477. |
Basically you have to edit P.S. you do not need to set |
Issue is now considered stale. If you want to keep it open, please comment 👍 |
👍 |
1 similar comment
👍 |
I've tried everything here, and it still doesn't seem to work. On Unraid with nginx-proxy-manager-official. Any suggestions? |
Someone pushed a bugged commit which broke the behaviour of custom directions. You need to edit the config file in data dir and never touch the WebUI again. |
I assume an update would then overwrite any changes I make as well? |
Describe the bug
Hi, I need to override the
default proxy_set_header Host $host
toproxy_set_header Host $http_host
for a specific Proxy Host, since it's required by the app I'm trying to Proxy (more info here)To Reproduce
Create a Proxy Host
Go to Advanced and add
proxy_set_header Host $http_host;
The value is not applied and the application throws an error.
Expected behavior
I am expecting this value to be added.
Screenshots
Operating System
Additional context
If on the host I edit
/etc/nginx/conf.d/include/proxy.conf
and change the default value, it works, but it's a temporary change.The text was updated successfully, but these errors were encountered: