[GH-ISSUE #37] custom set header in location #35

Closed
opened 2026-02-26 05:33:19 +03:00 by kerem · 5 comments
Owner

Originally created by @SaulGoodman1337 on GitHub (Dec 21, 2018).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/37

I currently have the problem that the Unifi controller wants the following header set:

proxy_set_header Authorization ""; .

Which is also no problem, I simply entered the header manually in the proxy_host config. But this config is always re-provisioned after a change anywhere in nginx proxy manager.
Does anyone have an idea how I can set this persistent?

Originally created by @SaulGoodman1337 on GitHub (Dec 21, 2018). Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/37 I currently have the problem that the Unifi controller wants the following header set: proxy_set_header Authorization ""; . Which is also no problem, I simply entered the header manually in the proxy_host config. But this config is always re-provisioned after a change anywhere in nginx proxy manager. Does anyone have an idea how I can set this persistent?
kerem 2026-02-26 05:33:19 +03:00
Author
Owner

@jc21 commented on GitHub (Jan 3, 2019):

It's not possible as yet for this to be set and persistent in the default location block. The feature will have to be added in a more generic manner.

<!-- gh-comment-id:451054350 --> @jc21 commented on GitHub (Jan 3, 2019): It's not possible as yet for this to be set and persistent in the default location block. The feature will have to be added in a more generic manner.
Author
Owner

@SaulGoodman1337 commented on GitHub (Jan 3, 2019):

Are you going to take care of this? The feature is really important for me, otherwise I have to look elsewhere :(

<!-- gh-comment-id:451092191 --> @SaulGoodman1337 commented on GitHub (Jan 3, 2019): Are you going to take care of this? The feature is really important for me, otherwise I have to look elsewhere :(
Author
Owner

@SaulGoodman1337 commented on GitHub (Jan 3, 2019):

Just an idea...
add a checkbox that causes the location / {} for this host not to be rolled out. So I can define my own location in the Advanced settings.

This should be very easy and fast to solve.

<!-- gh-comment-id:451101212 --> @SaulGoodman1337 commented on GitHub (Jan 3, 2019): Just an idea... add a checkbox that causes the location / {} for this host not to be rolled out. So I can define my own location in the Advanced settings. This should be very easy and fast to solve.
Author
Owner

@RHuehne commented on GitHub (Jan 12, 2019):

if there was an option "manual mode" in the advanced section which would just switch to the raw content of the conf file this would allow advanced configs without crashing the rest. When switching to manual mode, all previously in the gui configured settings would be listed, along with all required includes (for SSL and AccessLists, etc) - and you could just edit the conf by hand. Depending on how the gui-settings are stored (just the conf file or also in the DB), once enabled, disabling "manual mode" is either not allowed or would killl manual settings and restore the basic-settings initially defined via gui.

I really like this app! But as it happens often to me that basic settings don't do it for the proxy, I currently manage my nginx-reverse-proxy via the ajenti v1 webinterface (which is an web-based file editor basicly).
cheers!

<!-- gh-comment-id:453759065 --> @RHuehne commented on GitHub (Jan 12, 2019): if there was an option "manual mode" in the advanced section which would just switch to the raw content of the conf file this would allow advanced configs without crashing the rest. When switching to manual mode, all previously in the gui configured settings would be listed, along with all required includes (for SSL and AccessLists, etc) - and you could just edit the conf by hand. Depending on how the gui-settings are stored (just the conf file or also in the DB), once enabled, disabling "manual mode" is either not allowed or would killl manual settings and restore the basic-settings initially defined via gui. I really like this app! But as it happens often to me that basic settings don't do it for the proxy, I currently manage my nginx-reverse-proxy via the ajenti v1 webinterface (which is an web-based file editor basicly). cheers!
Author
Owner

@chaptergy commented on GitHub (Oct 25, 2021):

By now you can simply add a custom location / and add your headers there through the advanced config.

<!-- gh-comment-id:950917444 --> @chaptergy commented on GitHub (Oct 25, 2021): By now you can simply add a custom location `/` and add your headers there through the advanced config.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nginx-proxy-manager-NginxProxyManager#35
No description provided.