From d4fced1198d26bc0f69ffaa628774c09b5f3dd4b Mon Sep 17 00:00:00 2001 From: adepssimius Date: Wed, 14 Jun 2023 22:06:43 -0400 Subject: [PATCH 01/10] Add support for custom themes in qBittorrent --- qbittorrent.subdomain.conf.sample | 15 +++++++++++++++ qbittorrent.subfolder.conf.sample | 15 +++++++++++++++ 2 files changed, 30 insertions(+) diff --git a/qbittorrent.subdomain.conf.sample b/qbittorrent.subdomain.conf.sample index 6bb63b69a..bdf44f16b 100644 --- a/qbittorrent.subdomain.conf.sample +++ b/qbittorrent.subdomain.conf.sample @@ -136,4 +136,19 @@ server { proxy_set_header Host $upstream_app:$upstream_port; proxy_set_header X-Forwarded-Host $host; } + + location ~ (/qbittorrent)?/css { + include /config/nginx/proxy.conf; + include /config/nginx/resolver.conf; + set $upstream_app qbittorrent; + set $upstream_port 8080; + set $upstream_proto http; + proxy_pass $upstream_proto://$upstream_app:$upstream_port; + + rewrite /qbittorrent(.*) $1 break; + + proxy_set_header Referer ''; + proxy_set_header Host $upstream_app:$upstream_port; + proxy_set_header X-Forwarded-Host $host; + } } diff --git a/qbittorrent.subfolder.conf.sample b/qbittorrent.subfolder.conf.sample index bd560477b..b4756ca7e 100644 --- a/qbittorrent.subfolder.conf.sample +++ b/qbittorrent.subfolder.conf.sample @@ -123,3 +123,18 @@ location ^~ /qbittorrent/scripts { proxy_set_header Host $upstream_app:$upstream_port; proxy_set_header X-Forwarded-Host $host; } + +location ^~ /qbittorrent/css { + include /config/nginx/proxy.conf; + include /config/nginx/resolver.conf; + set $upstream_app qbittorrent; + set $upstream_port 8080; + set $upstream_proto http; + proxy_pass $upstream_proto://$upstream_app:$upstream_port; + + rewrite /qbittorrent(.*) $1 break; + + proxy_set_header Referer ''; + proxy_set_header Host $upstream_app:$upstream_port; + proxy_set_header X-Forwarded-Host $host; +} From c0fcbaf5680fc311bc89c0da361f91063a486b69 Mon Sep 17 00:00:00 2001 From: adepssimius Date: Wed, 14 Jun 2023 22:10:02 -0400 Subject: [PATCH 02/10] Update revision dates --- qbittorrent.subdomain.conf.sample | 2 +- qbittorrent.subfolder.conf.sample | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/qbittorrent.subdomain.conf.sample b/qbittorrent.subdomain.conf.sample index bdf44f16b..244d3e990 100644 --- a/qbittorrent.subdomain.conf.sample +++ b/qbittorrent.subdomain.conf.sample @@ -1,4 +1,4 @@ -## Version 2023/05/31 +## Version 2023/06/14 # make sure that your qbittorrent container is named qbittorrent # make sure that your dns has a cname set for qbittorrent diff --git a/qbittorrent.subfolder.conf.sample b/qbittorrent.subfolder.conf.sample index b4756ca7e..4b55546fe 100644 --- a/qbittorrent.subfolder.conf.sample +++ b/qbittorrent.subfolder.conf.sample @@ -1,4 +1,4 @@ -## Version 2023/02/05 +## Version 2023/06/14 # make sure that your qbittorrent container is named qbittorrent # qbittorrent does not require a base url setting From 87fac4e5aa56b9f9040ccfab1706c5f307ffbd82 Mon Sep 17 00:00:00 2001 From: realbuz Date: Tue, 5 Sep 2023 16:45:36 -0400 Subject: [PATCH 03/10] Update komga.subdomain.conf.sample 2023/09/05 docker has recently updated the port to 25600 from 8080 --- komga.subdomain.conf.sample | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/komga.subdomain.conf.sample b/komga.subdomain.conf.sample index 2cec3badc..99b24ff28 100644 --- a/komga.subdomain.conf.sample +++ b/komga.subdomain.conf.sample @@ -38,7 +38,7 @@ server { include /config/nginx/proxy.conf; include /config/nginx/resolver.conf; set $upstream_app komga; - set $upstream_port 8080; + set $upstream_port 25600; set $upstream_proto http; proxy_pass $upstream_proto://$upstream_app:$upstream_port; @@ -48,7 +48,7 @@ server { include /config/nginx/proxy.conf; include /config/nginx/resolver.conf; set $upstream_app komga; - set $upstream_port 8080; + set $upstream_port 25600; set $upstream_proto http; proxy_pass $upstream_proto://$upstream_app:$upstream_port; From b205715ad8363ed545e9e3f7727f51c1dd0c4dd3 Mon Sep 17 00:00:00 2001 From: realbuz Date: Tue, 5 Sep 2023 16:46:25 -0400 Subject: [PATCH 04/10] Update komga.subfolder.conf.sample 2023/09/05 docker has recently updated the port to 25600 from 8080 --- komga.subfolder.conf.sample | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/komga.subfolder.conf.sample b/komga.subfolder.conf.sample index 7cd97d785..660812f87 100644 --- a/komga.subfolder.conf.sample +++ b/komga.subfolder.conf.sample @@ -24,7 +24,7 @@ location ^~ /komga/ { include /config/nginx/proxy.conf; include /config/nginx/resolver.conf; set $upstream_app komga; - set $upstream_port 8080 ; + set $upstream_port 25600 ; set $upstream_proto http; proxy_pass $upstream_proto://$upstream_app:$upstream_port; @@ -34,7 +34,7 @@ location ^~ /komga/api { include /config/nginx/proxy.conf; include /config/nginx/resolver.conf; set $upstream_app komga; - set $upstream_port 8080; + set $upstream_port 25600; set $upstream_proto http; proxy_pass $upstream_proto://$upstream_app:$upstream_port; } From a5729ec502a5582fc1b3a85c2d23b164c8b6a72e Mon Sep 17 00:00:00 2001 From: adepssimius Date: Tue, 5 Sep 2023 20:45:07 -0400 Subject: [PATCH 05/10] Fix alphebetization of routes --- qbittorrent.subdomain.conf.sample | 12 ++++++------ qbittorrent.subfolder.conf.sample | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/qbittorrent.subdomain.conf.sample b/qbittorrent.subdomain.conf.sample index 244d3e990..c7c8dd6f1 100644 --- a/qbittorrent.subdomain.conf.sample +++ b/qbittorrent.subdomain.conf.sample @@ -1,4 +1,4 @@ -## Version 2023/06/14 +## Version 2023/09/05 # make sure that your qbittorrent container is named qbittorrent # make sure that your dns has a cname set for qbittorrent @@ -77,7 +77,7 @@ server { proxy_set_header X-Forwarded-Host $host; } - location ~ (/qbittorrent)?/query { + location ~ (/qbittorrent)?/css { include /config/nginx/proxy.conf; include /config/nginx/resolver.conf; set $upstream_app qbittorrent; @@ -92,7 +92,7 @@ server { proxy_set_header X-Forwarded-Host $host; } - location ~ (/qbittorrent)?/login { + location ~ (/qbittorrent)?/query { include /config/nginx/proxy.conf; include /config/nginx/resolver.conf; set $upstream_app qbittorrent; @@ -107,7 +107,7 @@ server { proxy_set_header X-Forwarded-Host $host; } - location ~ (/qbittorrent)?/sync { + location ~ (/qbittorrent)?/login { include /config/nginx/proxy.conf; include /config/nginx/resolver.conf; set $upstream_app qbittorrent; @@ -122,7 +122,7 @@ server { proxy_set_header X-Forwarded-Host $host; } - location ~ (/qbittorrent)?/scripts { + location ~ (/qbittorrent)?/sync { include /config/nginx/proxy.conf; include /config/nginx/resolver.conf; set $upstream_app qbittorrent; @@ -137,7 +137,7 @@ server { proxy_set_header X-Forwarded-Host $host; } - location ~ (/qbittorrent)?/css { + location ~ (/qbittorrent)?/scripts { include /config/nginx/proxy.conf; include /config/nginx/resolver.conf; set $upstream_app qbittorrent; diff --git a/qbittorrent.subfolder.conf.sample b/qbittorrent.subfolder.conf.sample index 4b55546fe..a1bc0c6ad 100644 --- a/qbittorrent.subfolder.conf.sample +++ b/qbittorrent.subfolder.conf.sample @@ -1,4 +1,4 @@ -## Version 2023/06/14 +## Version 2023/09/05 # make sure that your qbittorrent container is named qbittorrent # qbittorrent does not require a base url setting @@ -64,7 +64,7 @@ location ^~ /qbittorrent/command { proxy_set_header X-Forwarded-Host $host; } -location ^~ /qbittorrent/query { +location ^~ /qbittorrent/css { include /config/nginx/proxy.conf; include /config/nginx/resolver.conf; set $upstream_app qbittorrent; @@ -79,7 +79,7 @@ location ^~ /qbittorrent/query { proxy_set_header X-Forwarded-Host $host; } -location ^~ /qbittorrent/login { +location ^~ /qbittorrent/query { include /config/nginx/proxy.conf; include /config/nginx/resolver.conf; set $upstream_app qbittorrent; @@ -94,7 +94,7 @@ location ^~ /qbittorrent/login { proxy_set_header X-Forwarded-Host $host; } -location ^~ /qbittorrent/sync { +location ^~ /qbittorrent/login { include /config/nginx/proxy.conf; include /config/nginx/resolver.conf; set $upstream_app qbittorrent; @@ -109,7 +109,7 @@ location ^~ /qbittorrent/sync { proxy_set_header X-Forwarded-Host $host; } -location ^~ /qbittorrent/scripts { +location ^~ /qbittorrent/sync { include /config/nginx/proxy.conf; include /config/nginx/resolver.conf; set $upstream_app qbittorrent; @@ -124,7 +124,7 @@ location ^~ /qbittorrent/scripts { proxy_set_header X-Forwarded-Host $host; } -location ^~ /qbittorrent/css { +location ^~ /qbittorrent/scripts { include /config/nginx/proxy.conf; include /config/nginx/resolver.conf; set $upstream_app qbittorrent; From a3bfd0d47e1f1de20af94d5aed15e19591aec1f0 Mon Sep 17 00:00:00 2001 From: realbuz Date: Wed, 6 Sep 2023 08:28:44 -0400 Subject: [PATCH 06/10] Update komga.subfolder.conf.sample updated date --- komga.subfolder.conf.sample | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/komga.subfolder.conf.sample b/komga.subfolder.conf.sample index 660812f87..f9e60d64c 100644 --- a/komga.subfolder.conf.sample +++ b/komga.subfolder.conf.sample @@ -1,4 +1,4 @@ -## Version 2023/02/05 +## Version 2023/09/05 # make sure that your komga container is named komga # make sure that komga is set to work with the base url /komga/ # First make sure your Container has set an Baseurl set via docker-compose File "envirnoment: SERVER_SERVLET_CONTEXT_PATH=/komga" and recreate the container. From 3fc3fd9cb674964be2f543aeb0b8da70a15e9bcd Mon Sep 17 00:00:00 2001 From: realbuz Date: Wed, 6 Sep 2023 08:30:28 -0400 Subject: [PATCH 07/10] Update komga.subdomain.conf.sample updated date --- komga.subdomain.conf.sample | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/komga.subdomain.conf.sample b/komga.subdomain.conf.sample index 99b24ff28..6cf219129 100644 --- a/komga.subdomain.conf.sample +++ b/komga.subdomain.conf.sample @@ -1,4 +1,4 @@ -## Version 2023/05/31 +## Version 2023/09/05 # make sure that your komga container is named komga # make sure that your dns has a cname set for komga From 663e9c296e3fdf022b8d67f0a43fe7eb182a4bf6 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 25 Sep 2023 20:36:16 +0000 Subject: [PATCH 08/10] Bump actions/checkout from 4.0.0 to 4.1.0 Bumps [actions/checkout](https://github.com/actions/checkout) from 4.0.0 to 4.1.0. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v4.0.0...v4.1.0) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/check_samples.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/check_samples.yml b/.github/workflows/check_samples.yml index 00f848999..d645f0d3f 100644 --- a/.github/workflows/check_samples.yml +++ b/.github/workflows/check_samples.yml @@ -12,7 +12,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v4.0.0 + uses: actions/checkout@v4.1.0 - name: Check Allowed File Names run: | From 10dc95fcec9baa7b5867cf5e20648d748436adce Mon Sep 17 00:00:00 2001 From: JOnathan duMonT <5204724+JOduMonT@users.noreply.github.com> Date: Thu, 28 Sep 2023 10:57:26 +0200 Subject: [PATCH 09/10] Create nocodb.subdomain.conf.sample --- nocodb.subdomain.conf.sample | 45 ++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 nocodb.subdomain.conf.sample diff --git a/nocodb.subdomain.conf.sample b/nocodb.subdomain.conf.sample new file mode 100644 index 000000000..26e877b1b --- /dev/null +++ b/nocodb.subdomain.conf.sample @@ -0,0 +1,45 @@ +## Version 2023/09/28 +# make sure that your nocodb container is named nocodb +# make sure that your dns has a cname set for nocodb + +server { + listen 443 ssl http2; + listen [::]:443 ssl http2; + + server_name nocodb.*; + + include /config/nginx/ssl.conf; + + client_max_body_size 0; + + # enable for ldap auth (requires ldap-location.conf in the location block) + #include /config/nginx/ldap-server.conf; + + # enable for Authelia (requires authelia-location.conf in the location block) + #include /config/nginx/authelia-server.conf; + + # enable for Authentik (requires authentik-location.conf in the location block) + #include /config/nginx/authentik-server.conf; + + location / { + # enable the next two lines for http auth + #auth_basic "Restricted"; + #auth_basic_user_file /config/nginx/.htpasswd; + + # enable for ldap auth (requires ldap-server.conf in the server block) + #include /config/nginx/ldap-location.conf; + + # enable for Authelia (requires authelia-server.conf in the server block) + #include /config/nginx/authelia-location.conf; + + # enable for Authentik (requires authentik-server.conf in the server block) + #include /config/nginx/authentik-location.conf; + + include /config/nginx/proxy.conf; + include /config/nginx/resolver.conf; + set $upstream_app nocodb; + set $upstream_port 8080; + set $upstream_proto http; + proxy_pass $upstream_proto://$upstream_app:$upstream_port; + } +} From 9d40ac2638e25184009893823ccf6d38b590bb6e Mon Sep 17 00:00:00 2001 From: aptalca <541623+aptalca@users.noreply.github.com> Date: Tue, 10 Oct 2023 16:01:28 -0400 Subject: [PATCH 10/10] comment out api bypass in qbit, add disclaimer --- qbittorrent.subdomain.conf.sample | 218 ++++++++++++++++-------------- qbittorrent.subfolder.conf.sample | 218 ++++++++++++++++-------------- 2 files changed, 226 insertions(+), 210 deletions(-) diff --git a/qbittorrent.subdomain.conf.sample b/qbittorrent.subdomain.conf.sample index c7c8dd6f1..4dd6135c7 100644 --- a/qbittorrent.subdomain.conf.sample +++ b/qbittorrent.subdomain.conf.sample @@ -1,6 +1,14 @@ -## Version 2023/09/05 +## Version 2023/10/10 # make sure that your qbittorrent container is named qbittorrent # make sure that your dns has a cname set for qbittorrent +# Api and related location bypasses are now commented out by default +# due to users easily misconfiguring qbittorrent to allow +# public access through the api endpoint by including SWAG in +# "Bypass authentication for clients in whitelisted IP subnets", +# which results in all connections through SWAG to be considered +# local and bypassing auth, which also applies to qbittorrent's +# api endpoint (webui api) +# enable at your own risk server { listen 443 ssl http2; @@ -47,108 +55,108 @@ server { proxy_set_header X-Forwarded-Host $host; } - location ~ (/qbittorrent)?/api { - include /config/nginx/proxy.conf; - include /config/nginx/resolver.conf; - set $upstream_app qbittorrent; - set $upstream_port 8080; - set $upstream_proto http; - proxy_pass $upstream_proto://$upstream_app:$upstream_port; - - rewrite /qbittorrent(.*) $1 break; - - proxy_set_header Referer ''; - proxy_set_header Host $upstream_app:$upstream_port; - proxy_set_header X-Forwarded-Host $host; - } - - location ~ (/qbittorrent)?/command { - include /config/nginx/proxy.conf; - include /config/nginx/resolver.conf; - set $upstream_app qbittorrent; - set $upstream_port 8080; - set $upstream_proto http; - proxy_pass $upstream_proto://$upstream_app:$upstream_port; - - rewrite /qbittorrent(.*) $1 break; - - proxy_set_header Referer ''; - proxy_set_header Host $upstream_app:$upstream_port; - proxy_set_header X-Forwarded-Host $host; - } - - location ~ (/qbittorrent)?/css { - include /config/nginx/proxy.conf; - include /config/nginx/resolver.conf; - set $upstream_app qbittorrent; - set $upstream_port 8080; - set $upstream_proto http; - proxy_pass $upstream_proto://$upstream_app:$upstream_port; - - rewrite /qbittorrent(.*) $1 break; - - proxy_set_header Referer ''; - proxy_set_header Host $upstream_app:$upstream_port; - proxy_set_header X-Forwarded-Host $host; - } - - location ~ (/qbittorrent)?/query { - include /config/nginx/proxy.conf; - include /config/nginx/resolver.conf; - set $upstream_app qbittorrent; - set $upstream_port 8080; - set $upstream_proto http; - proxy_pass $upstream_proto://$upstream_app:$upstream_port; - - rewrite /qbittorrent(.*) $1 break; - - proxy_set_header Referer ''; - proxy_set_header Host $upstream_app:$upstream_port; - proxy_set_header X-Forwarded-Host $host; - } - - location ~ (/qbittorrent)?/login { - include /config/nginx/proxy.conf; - include /config/nginx/resolver.conf; - set $upstream_app qbittorrent; - set $upstream_port 8080; - set $upstream_proto http; - proxy_pass $upstream_proto://$upstream_app:$upstream_port; - - rewrite /qbittorrent(.*) $1 break; - - proxy_set_header Referer ''; - proxy_set_header Host $upstream_app:$upstream_port; - proxy_set_header X-Forwarded-Host $host; - } - - location ~ (/qbittorrent)?/sync { - include /config/nginx/proxy.conf; - include /config/nginx/resolver.conf; - set $upstream_app qbittorrent; - set $upstream_port 8080; - set $upstream_proto http; - proxy_pass $upstream_proto://$upstream_app:$upstream_port; - - rewrite /qbittorrent(.*) $1 break; - - proxy_set_header Referer ''; - proxy_set_header Host $upstream_app:$upstream_port; - proxy_set_header X-Forwarded-Host $host; - } - - location ~ (/qbittorrent)?/scripts { - include /config/nginx/proxy.conf; - include /config/nginx/resolver.conf; - set $upstream_app qbittorrent; - set $upstream_port 8080; - set $upstream_proto http; - proxy_pass $upstream_proto://$upstream_app:$upstream_port; - - rewrite /qbittorrent(.*) $1 break; - - proxy_set_header Referer ''; - proxy_set_header Host $upstream_app:$upstream_port; - proxy_set_header X-Forwarded-Host $host; - } + # location ~ (/qbittorrent)?/api { + # include /config/nginx/proxy.conf; + # include /config/nginx/resolver.conf; + # set $upstream_app qbittorrent; + # set $upstream_port 8080; + # set $upstream_proto http; + # proxy_pass $upstream_proto://$upstream_app:$upstream_port; + + # rewrite /qbittorrent(.*) $1 break; + + # proxy_set_header Referer ''; + # proxy_set_header Host $upstream_app:$upstream_port; + # proxy_set_header X-Forwarded-Host $host; + # } + + # location ~ (/qbittorrent)?/command { + # include /config/nginx/proxy.conf; + # include /config/nginx/resolver.conf; + # set $upstream_app qbittorrent; + # set $upstream_port 8080; + # set $upstream_proto http; + # proxy_pass $upstream_proto://$upstream_app:$upstream_port; + + # rewrite /qbittorrent(.*) $1 break; + + # proxy_set_header Referer ''; + # proxy_set_header Host $upstream_app:$upstream_port; + # proxy_set_header X-Forwarded-Host $host; + # } + + # location ~ (/qbittorrent)?/css { + # include /config/nginx/proxy.conf; + # include /config/nginx/resolver.conf; + # set $upstream_app qbittorrent; + # set $upstream_port 8080; + # set $upstream_proto http; + # proxy_pass $upstream_proto://$upstream_app:$upstream_port; + + # rewrite /qbittorrent(.*) $1 break; + + # proxy_set_header Referer ''; + # proxy_set_header Host $upstream_app:$upstream_port; + # proxy_set_header X-Forwarded-Host $host; + # } + + # location ~ (/qbittorrent)?/query { + # include /config/nginx/proxy.conf; + # include /config/nginx/resolver.conf; + # set $upstream_app qbittorrent; + # set $upstream_port 8080; + # set $upstream_proto http; + # proxy_pass $upstream_proto://$upstream_app:$upstream_port; + + # rewrite /qbittorrent(.*) $1 break; + + # proxy_set_header Referer ''; + # proxy_set_header Host $upstream_app:$upstream_port; + # proxy_set_header X-Forwarded-Host $host; + # } + + # location ~ (/qbittorrent)?/login { + # include /config/nginx/proxy.conf; + # include /config/nginx/resolver.conf; + # set $upstream_app qbittorrent; + # set $upstream_port 8080; + # set $upstream_proto http; + # proxy_pass $upstream_proto://$upstream_app:$upstream_port; + + # rewrite /qbittorrent(.*) $1 break; + + # proxy_set_header Referer ''; + # proxy_set_header Host $upstream_app:$upstream_port; + # proxy_set_header X-Forwarded-Host $host; + # } + + # location ~ (/qbittorrent)?/sync { + # include /config/nginx/proxy.conf; + # include /config/nginx/resolver.conf; + # set $upstream_app qbittorrent; + # set $upstream_port 8080; + # set $upstream_proto http; + # proxy_pass $upstream_proto://$upstream_app:$upstream_port; + + # rewrite /qbittorrent(.*) $1 break; + + # proxy_set_header Referer ''; + # proxy_set_header Host $upstream_app:$upstream_port; + # proxy_set_header X-Forwarded-Host $host; + # } + + # location ~ (/qbittorrent)?/scripts { + # include /config/nginx/proxy.conf; + # include /config/nginx/resolver.conf; + # set $upstream_app qbittorrent; + # set $upstream_port 8080; + # set $upstream_proto http; + # proxy_pass $upstream_proto://$upstream_app:$upstream_port; + + # rewrite /qbittorrent(.*) $1 break; + + # proxy_set_header Referer ''; + # proxy_set_header Host $upstream_app:$upstream_port; + # proxy_set_header X-Forwarded-Host $host; + # } } diff --git a/qbittorrent.subfolder.conf.sample b/qbittorrent.subfolder.conf.sample index a1bc0c6ad..d0bd429bc 100644 --- a/qbittorrent.subfolder.conf.sample +++ b/qbittorrent.subfolder.conf.sample @@ -1,6 +1,14 @@ -## Version 2023/09/05 +## Version 2023/10/10 # make sure that your qbittorrent container is named qbittorrent # qbittorrent does not require a base url setting +# Api and related location bypasses are now commented out by default +# due to users easily misconfiguring qbittorrent to allow +# public access through the api endpoint by including SWAG in +# "Bypass authentication for clients in whitelisted IP subnets", +# which results in all connections through SWAG to be considered +# local and bypassing auth, which also applies to qbittorrent's +# api endpoint (webui api) +# enable at your own risk location /qbittorrent { return 301 $scheme://$host/qbittorrent/; @@ -34,107 +42,107 @@ location ^~ /qbittorrent/ { proxy_set_header X-Forwarded-Host $host; } -location ^~ /qbittorrent/api { - include /config/nginx/proxy.conf; - include /config/nginx/resolver.conf; - set $upstream_app qbittorrent; - set $upstream_port 8080; - set $upstream_proto http; - proxy_pass $upstream_proto://$upstream_app:$upstream_port; - - rewrite /qbittorrent(.*) $1 break; - - proxy_set_header Referer ''; - proxy_set_header Host $upstream_app:$upstream_port; - proxy_set_header X-Forwarded-Host $host; -} - -location ^~ /qbittorrent/command { - include /config/nginx/proxy.conf; - include /config/nginx/resolver.conf; - set $upstream_app qbittorrent; - set $upstream_port 8080; - set $upstream_proto http; - proxy_pass $upstream_proto://$upstream_app:$upstream_port; - - rewrite /qbittorrent(.*) $1 break; - - proxy_set_header Referer ''; - proxy_set_header Host $upstream_app:$upstream_port; - proxy_set_header X-Forwarded-Host $host; -} - -location ^~ /qbittorrent/css { - include /config/nginx/proxy.conf; - include /config/nginx/resolver.conf; - set $upstream_app qbittorrent; - set $upstream_port 8080; - set $upstream_proto http; - proxy_pass $upstream_proto://$upstream_app:$upstream_port; - - rewrite /qbittorrent(.*) $1 break; - - proxy_set_header Referer ''; - proxy_set_header Host $upstream_app:$upstream_port; - proxy_set_header X-Forwarded-Host $host; -} - -location ^~ /qbittorrent/query { - include /config/nginx/proxy.conf; - include /config/nginx/resolver.conf; - set $upstream_app qbittorrent; - set $upstream_port 8080; - set $upstream_proto http; - proxy_pass $upstream_proto://$upstream_app:$upstream_port; - - rewrite /qbittorrent(.*) $1 break; - - proxy_set_header Referer ''; - proxy_set_header Host $upstream_app:$upstream_port; - proxy_set_header X-Forwarded-Host $host; -} - -location ^~ /qbittorrent/login { - include /config/nginx/proxy.conf; - include /config/nginx/resolver.conf; - set $upstream_app qbittorrent; - set $upstream_port 8080; - set $upstream_proto http; - proxy_pass $upstream_proto://$upstream_app:$upstream_port; - - rewrite /qbittorrent(.*) $1 break; - - proxy_set_header Referer ''; - proxy_set_header Host $upstream_app:$upstream_port; - proxy_set_header X-Forwarded-Host $host; -} - -location ^~ /qbittorrent/sync { - include /config/nginx/proxy.conf; - include /config/nginx/resolver.conf; - set $upstream_app qbittorrent; - set $upstream_port 8080; - set $upstream_proto http; - proxy_pass $upstream_proto://$upstream_app:$upstream_port; - - rewrite /qbittorrent(.*) $1 break; - - proxy_set_header Referer ''; - proxy_set_header Host $upstream_app:$upstream_port; - proxy_set_header X-Forwarded-Host $host; -} - -location ^~ /qbittorrent/scripts { - include /config/nginx/proxy.conf; - include /config/nginx/resolver.conf; - set $upstream_app qbittorrent; - set $upstream_port 8080; - set $upstream_proto http; - proxy_pass $upstream_proto://$upstream_app:$upstream_port; - - rewrite /qbittorrent(.*) $1 break; - - proxy_set_header Referer ''; - proxy_set_header Host $upstream_app:$upstream_port; - proxy_set_header X-Forwarded-Host $host; -} +# location ^~ /qbittorrent/api { +# include /config/nginx/proxy.conf; +# include /config/nginx/resolver.conf; +# set $upstream_app qbittorrent; +# set $upstream_port 8080; +# set $upstream_proto http; +# proxy_pass $upstream_proto://$upstream_app:$upstream_port; + +# rewrite /qbittorrent(.*) $1 break; + +# proxy_set_header Referer ''; +# proxy_set_header Host $upstream_app:$upstream_port; +# proxy_set_header X-Forwarded-Host $host; +# } + +# location ^~ /qbittorrent/command { +# include /config/nginx/proxy.conf; +# include /config/nginx/resolver.conf; +# set $upstream_app qbittorrent; +# set $upstream_port 8080; +# set $upstream_proto http; +# proxy_pass $upstream_proto://$upstream_app:$upstream_port; + +# rewrite /qbittorrent(.*) $1 break; + +# proxy_set_header Referer ''; +# proxy_set_header Host $upstream_app:$upstream_port; +# proxy_set_header X-Forwarded-Host $host; +# } + +# location ^~ /qbittorrent/css { +# include /config/nginx/proxy.conf; +# include /config/nginx/resolver.conf; +# set $upstream_app qbittorrent; +# set $upstream_port 8080; +# set $upstream_proto http; +# proxy_pass $upstream_proto://$upstream_app:$upstream_port; + +# rewrite /qbittorrent(.*) $1 break; + +# proxy_set_header Referer ''; +# proxy_set_header Host $upstream_app:$upstream_port; +# proxy_set_header X-Forwarded-Host $host; +# } + +# location ^~ /qbittorrent/query { +# include /config/nginx/proxy.conf; +# include /config/nginx/resolver.conf; +# set $upstream_app qbittorrent; +# set $upstream_port 8080; +# set $upstream_proto http; +# proxy_pass $upstream_proto://$upstream_app:$upstream_port; + +# rewrite /qbittorrent(.*) $1 break; + +# proxy_set_header Referer ''; +# proxy_set_header Host $upstream_app:$upstream_port; +# proxy_set_header X-Forwarded-Host $host; +# } + +# location ^~ /qbittorrent/login { +# include /config/nginx/proxy.conf; +# include /config/nginx/resolver.conf; +# set $upstream_app qbittorrent; +# set $upstream_port 8080; +# set $upstream_proto http; +# proxy_pass $upstream_proto://$upstream_app:$upstream_port; + +# rewrite /qbittorrent(.*) $1 break; + +# proxy_set_header Referer ''; +# proxy_set_header Host $upstream_app:$upstream_port; +# proxy_set_header X-Forwarded-Host $host; +# } + +# location ^~ /qbittorrent/sync { +# include /config/nginx/proxy.conf; +# include /config/nginx/resolver.conf; +# set $upstream_app qbittorrent; +# set $upstream_port 8080; +# set $upstream_proto http; +# proxy_pass $upstream_proto://$upstream_app:$upstream_port; + +# rewrite /qbittorrent(.*) $1 break; + +# proxy_set_header Referer ''; +# proxy_set_header Host $upstream_app:$upstream_port; +# proxy_set_header X-Forwarded-Host $host; +# } + +# location ^~ /qbittorrent/scripts { +# include /config/nginx/proxy.conf; +# include /config/nginx/resolver.conf; +# set $upstream_app qbittorrent; +# set $upstream_port 8080; +# set $upstream_proto http; +# proxy_pass $upstream_proto://$upstream_app:$upstream_port; + +# rewrite /qbittorrent(.*) $1 break; + +# proxy_set_header Referer ''; +# proxy_set_header Host $upstream_app:$upstream_port; +# proxy_set_header X-Forwarded-Host $host; +# }