[PR #178] [MERGED] Allow including custom nginx conf files #3198

Closed
opened 2026-02-26 07:38:26 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/NginxProxyManager/nginx-proxy-manager/pull/178
Author: @cmer
Created: 7/26/2019
Status: Merged
Merged: 8/9/2019
Merged by: @jc21

Base: masterHead: custom_nginx_includes


📝 Commits (3)

  • 56de662 Allow including custom nginx conf files
  • d10b660 Don't fail if file doesn't exist
  • e144199 Advanced Nginx settings doc

📊 Changes

5 files changed (+34 additions, -0 deletions)

View changed files

doc/ADVANCED_NGINX.md (+17 -0)
📝 rootfs/etc/nginx/nginx.conf (+5 -0)
📝 src/backend/templates/proxy_host.conf (+2 -0)
📝 src/backend/templates/redirection_host.conf (+2 -0)
📝 src/backend/templates/stream.conf (+8 -0)

📄 Description

Give advanced users more flexibility by allowing them to include custom config files at differents locations in the nginx configuration.

/data/nginx/custom/root.conf: Included at the very end of nginx.conf
/data/nginx/custom/http.conf: Included at the end of the main http block
/data/nginx/custom/server_proxy.conf: Included at the end of every proxy server block
/data/nginx/custom/server_redirect.conf: Included at the end of every redirection server block
/data/nginx/custom/server_stream.conf: Included at the end of every stream server block
/data/nginx/custom/server_stream_tcp.conf: Included at the end of every TCP stream server block
/data/nginx/custom/server_stream_udp.conf: Included at the end of every UDP stream server block


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/NginxProxyManager/nginx-proxy-manager/pull/178 **Author:** [@cmer](https://github.com/cmer) **Created:** 7/26/2019 **Status:** ✅ Merged **Merged:** 8/9/2019 **Merged by:** [@jc21](https://github.com/jc21) **Base:** `master` ← **Head:** `custom_nginx_includes` --- ### 📝 Commits (3) - [`56de662`](https://github.com/NginxProxyManager/nginx-proxy-manager/commit/56de6621b51304c39571d57fe38ab5438c0d1e53) Allow including custom nginx conf files - [`d10b660`](https://github.com/NginxProxyManager/nginx-proxy-manager/commit/d10b66028bbd143ab7c757ce12e22a629e5dc1b4) Don't fail if file doesn't exist - [`e144199`](https://github.com/NginxProxyManager/nginx-proxy-manager/commit/e144199c4e23f0218e79807146d9c0fed3f058e8) Advanced Nginx settings doc ### 📊 Changes **5 files changed** (+34 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `doc/ADVANCED_NGINX.md` (+17 -0) 📝 `rootfs/etc/nginx/nginx.conf` (+5 -0) 📝 `src/backend/templates/proxy_host.conf` (+2 -0) 📝 `src/backend/templates/redirection_host.conf` (+2 -0) 📝 `src/backend/templates/stream.conf` (+8 -0) </details> ### 📄 Description Give advanced users more flexibility by allowing them to include custom config files at differents locations in the nginx configuration. `/data/nginx/custom/root.conf`: Included at the very end of nginx.conf `/data/nginx/custom/http.conf`: Included at the end of the main `http` block `/data/nginx/custom/server_proxy.conf`: Included at the end of every proxy `server` block `/data/nginx/custom/server_redirect.conf`: Included at the end of every redirection `server` block `/data/nginx/custom/server_stream.conf`: Included at the end of every stream `server` block `/data/nginx/custom/server_stream_tcp.conf`: Included at the end of every TCP stream `server` block `/data/nginx/custom/server_stream_udp.conf`: Included at the end of every UDP stream `server` block --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 07:38:26 +03:00
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#3198
No description provided.