nginx-proxy-manager icon indicating copy to clipboard operation
nginx-proxy-manager copied to clipboard

Disable default headers set by nginx-proxy-manager

Open SamuelNitsche opened this issue 3 years ago • 8 comments

Is your feature request related to a problem? Please describe. I have a case where the proxied application stops working if the default Host header (proxy_set_header Host $host) is set. This is done automatically by nginx-proxy-manager.

Describe the solution you'd like Add a checkbox (unchecked by default) to create a "raw" proxy where only the proxy_pass directive is set in the configuration file.

Describe alternatives you've considered No alternatives I can think of.

SamuelNitsche avatar Jan 21 '22 09:01 SamuelNitsche

I faced the exact same issue and solved it by removing the proxy_set_header lines from the config template file and adding them in frontend/js/models/proxy-host-location.js as a default value for the advanced_config field, thus maintaining the default behaviour while allowing maximum configurability.

cb28f98

vivedo avatar Feb 10 '22 09:02 vivedo

Seems like a good solution. Could you make create a PR with these changes?

SamuelNitsche avatar Feb 10 '22 10:02 SamuelNitsche

Here it is #1844

vivedo avatar Feb 10 '22 10:02 vivedo

I'm facing the same issue when adding Authelia in the custom locations instead of advanced tab. Due to 1 or more proxy_set_header which is added as default causes the login to not work.

Is there news on when this PR will be released?

jpdsc avatar Dec 12 '22 14:12 jpdsc

+1

CrazyFluffyPony avatar Dec 18 '22 21:12 CrazyFluffyPony

I have the same issue for some testing purposes, sadly the PR got deleted / closed :-(

manuelmanhart avatar Aug 29 '23 13:08 manuelmanhart

Issue is now considered stale. If you want to keep it open, please comment :+1:

github-actions[bot] avatar May 05 '24 01:05 github-actions[bot]