[PR #3766] [MERGED] Add include for root_top.conf in the nginx.conf #3754

Closed
opened 2026-02-26 08:31:49 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/NginxProxyManager/nginx-proxy-manager/pull/3766
Author: @kroegerama
Created: 5/19/2024
Status: Merged
Merged: 7/1/2024
Merged by: @jc21

Base: developHead: kroegerama-patch-1


📝 Commits (2)

  • 3ce477d add include for root_top.conf in the nginx.conf
  • ef23e79 update advanced config documentation

📊 Changes

2 files changed (+13 additions, -0 deletions)

View changed files

📝 docker/rootfs/etc/nginx/nginx.conf (+3 -0)
📝 docs/src/advanced-config/index.md (+10 -0)

📄 Description

This pull request allows custom configuration of the root config in the top of the file. This can be used to load modules, which is not possible at the end of the config file. There is already a http_top.conf, so root_top.conf is a logical addition.

The PR NginxProxyManager/docker-nginx-full#28 added the geoip2 module as requested in Issue #46. But currently there is no way to actually load the modules if you cannot mount custom files to /etc/nginx/modules/ like in the Truenas Scale NPM App.

Now you can just add a root_top.conf to the persistent mounted /data/custom folder and add the following content:

load_module /usr/lib/nginx/modules/ngx_http_geoip2_module.so;
load_module /usr/lib/nginx/modules/ngx_stream_geoip2_module.so;

🔄 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/3766 **Author:** [@kroegerama](https://github.com/kroegerama) **Created:** 5/19/2024 **Status:** ✅ Merged **Merged:** 7/1/2024 **Merged by:** [@jc21](https://github.com/jc21) **Base:** `develop` ← **Head:** `kroegerama-patch-1` --- ### 📝 Commits (2) - [`3ce477d`](https://github.com/NginxProxyManager/nginx-proxy-manager/commit/3ce477d35095d883047daa79bd6d722eddd3d00a) add include for `root_top.conf` in the nginx.conf - [`ef23e79`](https://github.com/NginxProxyManager/nginx-proxy-manager/commit/ef23e796ec1c8f161020ebac5a607194fd7f5cac) update advanced config documentation ### 📊 Changes **2 files changed** (+13 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `docker/rootfs/etc/nginx/nginx.conf` (+3 -0) 📝 `docs/src/advanced-config/index.md` (+10 -0) </details> ### 📄 Description This pull request allows custom configuration of the root config in the top of the file. This can be used to load modules, which is not possible at the end of the config file. There is already a `http_top.conf`, so `root_top.conf` is a logical addition. The PR NginxProxyManager/docker-nginx-full#28 added the geoip2 module as requested in Issue #46. But currently there is no way to actually load the modules if you cannot mount custom files to `/etc/nginx/modules/` like in the Truenas Scale NPM App. Now you can just add a `root_top.conf` to the persistent mounted `/data/custom` folder and add the following content: ``` load_module /usr/lib/nginx/modules/ngx_http_geoip2_module.so; load_module /usr/lib/nginx/modules/ngx_stream_geoip2_module.so; ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 08:31:49 +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#3754
No description provided.