[GH-ISSUE #43] Make /etc/nginx/conf.d/default.conf configurable #41

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

Originally created by @xorinzor on GitHub (Jan 5, 2019).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/43

Hi,

I've noticed that it isn't possible currently to set a custom nginx configuration to the default.conf.
Right now I would have to make my own script that gets applied every time the docker container gets built (ie: every update). Which isn't too bad, but could potentially result in that I'd overwrite any changes that got made to default.conf in a future update.

It'd be great if this could be configurable from the admin panel too, or at least for these files to be made persistent.

Originally created by @xorinzor on GitHub (Jan 5, 2019). Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/43 Hi, I've noticed that it isn't possible currently to set a custom nginx configuration to the default.conf. Right now I would have to make my own script that gets applied every time the docker container gets built (ie: every update). Which isn't too bad, but could potentially result in that I'd overwrite any changes that got made to default.conf in a future update. It'd be great if this could be configurable from the admin panel too, or at least for these files to be made persistent.
kerem 2026-02-26 05:33:34 +03:00
Author
Owner

@OhHeyAlan commented on GitHub (May 10, 2019):

If you use docker-compose.yml then just add a volume and pass your default.conf to your container (its what i'm doing). :-)

volumes:
    - ./default.conf:/etc/nginx/conf.d/default.conf
<!-- gh-comment-id:491114276 --> @OhHeyAlan commented on GitHub (May 10, 2019): If you use docker-compose.yml then just add a volume and pass your default.conf to your container (its what i'm doing). :-) ```yml volumes: - ./default.conf:/etc/nginx/conf.d/default.conf ```
Author
Owner

@meichthys commented on GitHub (Aug 15, 2020):

@OhHeyAlan In this case, would the ./default.conf need to reside on the docker host? Generally i prefer not to have any container related files saved on the host (outside of volumes).

<!-- gh-comment-id:674407481 --> @meichthys commented on GitHub (Aug 15, 2020): @OhHeyAlan In this case, would the ./default.conf need to reside on the docker host? Generally i prefer not to have any container related files saved on the host (outside of volumes).
Author
Owner

@github-actions[bot] commented on GitHub (Apr 4, 2024):

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

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

@xorinzor commented on GitHub (Apr 4, 2024):

👍

<!-- gh-comment-id:2036535953 --> @xorinzor commented on GitHub (Apr 4, 2024): 👍
Author
Owner

@github-actions[bot] commented on GitHub (Dec 24, 2024):

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

<!-- gh-comment-id:2560536035 --> @github-actions[bot] commented on GitHub (Dec 24, 2024): Issue is now considered stale. If you want to keep it open, please comment :+1:
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#41
No description provided.