[GH-ISSUE #2156] Populate Custom locations "custom Nginx configuration" reflecting file on disc #1545

Closed
opened 2026-02-26 07:31:30 +03:00 by kerem · 2 comments
Owner

Originally created by @mattiaskagstrom on GitHub (Jul 15, 2022).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/2156

Is your feature request related to a problem? Please describe.
I just spent 3 hours trying to set "proxy_set_header Host " in the "custom Nginx configuration"-section in Custom locations and kept getting "invalid header" from the server.

This was due to the config already having a line doing the same thing but with the (for me) wrong value.

I found this out here: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/1556

Describe the solution you'd like
The generated config should be populated in the custom config text area so it can be easily modified. There should also be a "reset to generated values" button.

autofill like this:
image

Describe alternatives you've considered
An alternative would be for the custom config to completely override the default configuration. but that would not be as easy for a beginner (like me)

this is the behaviour today:
image
image

this is what i have today after some manual editing:
image
image

Originally created by @mattiaskagstrom on GitHub (Jul 15, 2022). Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/2156 **Is your feature request related to a problem? Please describe.** I just spent 3 hours trying to set "proxy_set_header Host <hostname>" in the "custom Nginx configuration"-section in Custom locations and kept getting "invalid header" from the server. This was due to the config already having a line doing the same thing but with the (for me) wrong value. I found this out here: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/1556 **Describe the solution you'd like** The generated config should be populated in the custom config text area so it can be easily modified. There should also be a "reset to generated values" button. autofill like this: ![image](https://user-images.githubusercontent.com/3661126/179322446-6a6992b1-cc5d-439b-8985-e8d0b8285c4f.png) **Describe alternatives you've considered** An alternative would be for the custom config to completely override the default configuration. but that would not be as easy for a beginner (like me) this is the behaviour today: ![image](https://user-images.githubusercontent.com/3661126/179322249-ab963bc1-322d-4d54-929f-0216e4340683.png) ![image](https://user-images.githubusercontent.com/3661126/179322320-c475c3e6-0579-4986-a57d-ca00c5844eff.png) this is what i have today after some manual editing: ![image](https://user-images.githubusercontent.com/3661126/179322055-194f613b-1de3-426e-b736-5723e040c404.png) ![image](https://user-images.githubusercontent.com/3661126/179322135-c1558351-97a8-4c3c-b341-6659f539d9f2.png)
kerem 2026-02-26 07:31:30 +03:00
Author
Owner

@github-actions[bot] commented on GitHub (Feb 13, 2024):

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

<!-- gh-comment-id:1940168023 --> @github-actions[bot] commented on GitHub (Feb 13, 2024): Issue is now considered stale. If you want to keep it open, please comment :+1:
Author
Owner

@github-actions[bot] commented on GitHub (Mar 29, 2025):

Issue was closed due to inactivity.

<!-- gh-comment-id:2763016809 --> @github-actions[bot] commented on GitHub (Mar 29, 2025): Issue was closed due to inactivity.
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#1545
No description provided.