mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-04-25 09:25:55 +03:00
[GH-ISSUE #1920] How do I manually edit the Nginx config? #1399
Labels
No labels
awaiting feedback
bug
cannot reproduce
dns provider request
duplicate
enhancement
enhancement
enhancement
good first issue
help wanted
invalid
need more info
no certbot plugin available
product-support
pull-request
question
stale
troll
upstream issue
v2
v2
v2
v3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nginx-proxy-manager-NginxProxyManager#1399
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ScottBeeson on GitHub (Mar 9, 2022).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/1920
I'm not familiar with docker at all. If I needed to manually add something to the config, how would I do so?
@mochman commented on GitHub (Mar 14, 2022):
If you're talking about adding something to the individual site's proxy config. You can do that in the Advanced Tab when you're editing the proxy.
If you want to modify the main nginx.conf file, you can do what is talked about here.
@ScottBeeson commented on GitHub (Mar 14, 2022):
That helps, but is there no way to see the full config?
@mochman commented on GitHub (Mar 14, 2022):
If you want to just see the nginx.conf file you can run
docker exec <PROXY_MANAGER_NAME> cat /etc/nginx/nginx.confIf you really want to mess around with the config, you can always mount the
/etc/nginx/nginx.conffile. You'll need to have a fully configurednginx.conffile already on your local server before you do this, otherwise you'll erase the one in the docker container. You can probably use the one in this repo.You can add this to your
docker-compose.ymlI don't recommend doing this, but if you want full access to that file, this is a way to do it.