From ccb8443241b59319d592d5d559d2afb771a83a29 Mon Sep 17 00:00:00 2001 From: Zoey Date: Sat, 14 Dec 2024 22:47:11 +0100 Subject: [PATCH 1/2] Add NPMplus to reverse-proxy.md Signed-off-by: Zoey --- reverse-proxy.md | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/reverse-proxy.md b/reverse-proxy.md index a7eea8c2..633c7a55 100644 --- a/reverse-proxy.md +++ b/reverse-proxy.md @@ -411,6 +411,32 @@ server { +### NPMplus (Fork of Nginx-Proxy-Manager - NPM) + +
+ +click here to expand + +⚠️ **Please note:** This is not needed when running NPMplus as a community container. + +First, make sure the environmental variables `PUID` and `PGID` in the `compose.yaml` file for NPM are either unset or set to `0`. +If you need to change the GID/PID then please add `net.ipv4.ip_unprivileged_port_start=0` at the end of `/etc/sysctl.conf`. Note: this will cause that a non root user can bind privileged ports. + +Second, see these screenshots for a working config: + +![grafik](https://github.com/user-attachments/assets/c32c8fe8-7417-4f8f-9625-24b95651e630) + +![grafik](https://github.com/user-attachments/assets/a26c53fd-6cc8-4a6b-a86f-c2f94b70088f) + +![grafik](https://github.com/user-attachments/assets/75d7f539-35d1-4a3e-8c51-43123f698893) + +![grafik](https://github.com/user-attachments/assets/e494edb5-8b70-4d45-bc9b-374219230041) + +⚠️ **Please note:** Nextcloud will complain that X-XXS-Protection is set to the wrong value, this is intended by NPMplus. +⚠️ **Please note:** look into [this](#adapting-the-sample-web-server-configurations-below) to adapt the above example configuration. + +
+ ### Nginx-Proxy-Manager - NPM
@@ -420,7 +446,7 @@ server { **Hint:** You may have a look at [this guide](https://github.com/nextcloud/all-in-one/discussions/588#discussioncomment-3040493) for a more complete but possibly oudated example. First, make sure the environmental variables `PUID` and `PGID` in the `compose.yaml` file for NPM are either unset or set to `0`. -If you need to change the GID/PID then please add `net.ipv4.ip_unprivileged_port_start=0` at the end of `/etc/sysctl.conf`. Note: this will cause that non root users can bind privileged ports. +If you need to change the GID/PID then please add `net.ipv4.ip_unprivileged_port_start=0` at the end of `/etc/sysctl.conf`. Note: this will cause that a non root user can bind privileged ports. Second, see these screenshots for a working config: From d5cd4fe519d6df72c076e44544b31e81f9876acb Mon Sep 17 00:00:00 2001 From: Zoey Date: Sat, 14 Dec 2024 22:49:10 +0100 Subject: [PATCH 2/2] Update reverse-proxy.md Signed-off-by: Zoey --- reverse-proxy.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/reverse-proxy.md b/reverse-proxy.md index 633c7a55..b2e7603f 100644 --- a/reverse-proxy.md +++ b/reverse-proxy.md @@ -419,8 +419,9 @@ server { ⚠️ **Please note:** This is not needed when running NPMplus as a community container. -First, make sure the environmental variables `PUID` and `PGID` in the `compose.yaml` file for NPM are either unset or set to `0`. -If you need to change the GID/PID then please add `net.ipv4.ip_unprivileged_port_start=0` at the end of `/etc/sysctl.conf`. Note: this will cause that a non root user can bind privileged ports. +First, make sure the environmental variables `PUID` and `PGID` in the `compose.yaml` file for NPM are either unset or set to `0`.
+If you need to change the GID/PID then please add `net.ipv4.ip_unprivileged_port_start=0` at the end of `/etc/sysctl.conf`.
+Note: this will cause that a non root user can bind privileged ports. Second, see these screenshots for a working config: @@ -432,7 +433,7 @@ Second, see these screenshots for a working config: ![grafik](https://github.com/user-attachments/assets/e494edb5-8b70-4d45-bc9b-374219230041) -⚠️ **Please note:** Nextcloud will complain that X-XXS-Protection is set to the wrong value, this is intended by NPMplus. +⚠️ **Please note:** Nextcloud will complain that X-XXS-Protection is set to the wrong value, this is intended by NPMplus.
⚠️ **Please note:** look into [this](#adapting-the-sample-web-server-configurations-below) to adapt the above example configuration.
@@ -445,8 +446,9 @@ Second, see these screenshots for a working config: **Hint:** You may have a look at [this guide](https://github.com/nextcloud/all-in-one/discussions/588#discussioncomment-3040493) for a more complete but possibly oudated example. -First, make sure the environmental variables `PUID` and `PGID` in the `compose.yaml` file for NPM are either unset or set to `0`. -If you need to change the GID/PID then please add `net.ipv4.ip_unprivileged_port_start=0` at the end of `/etc/sysctl.conf`. Note: this will cause that a non root user can bind privileged ports. +First, make sure the environmental variables `PUID` and `PGID` in the `compose.yaml` file for NPM are either unset or set to `0`.
+If you need to change the GID/PID then please add `net.ipv4.ip_unprivileged_port_start=0` at the end of `/etc/sysctl.conf`.
+Note: this will cause that a non root user can bind privileged ports. Second, see these screenshots for a working config: