Skip to content

Commit ea7e76e

Browse files
authored
Merge pull request #362 from linuxserver/redirect
remove dupe config that errors in nginx 1.20
2 parents 47e0494 + c9ee2b7 commit ea7e76e

8 files changed

Lines changed: 10 additions & 18 deletions

freshrss.subdomain.conf.sample

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Version 2021/05/18
1+
## Version 2021/07/08
22
# make sure that your dns has a cname set for freshrss
33

44
server {
@@ -36,7 +36,6 @@ server {
3636
set $upstream_proto http;
3737
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
3838

39-
proxy_redirect off;
4039
proxy_buffering off;
4140
proxy_set_header X-Forwarded-Port $server_port;
4241
proxy_cookie_path / "/; HTTPOnly; Secure";

freshrss.subfolder.conf.sample

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Version 2021/05/18
1+
## Version 2021/07/08
22
# freshrss does not have a base url setting
33

44
location /freshrss {
@@ -25,7 +25,6 @@ location ^~ /freshrss/ {
2525
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
2626

2727
rewrite /freshrss(.*) $1 break;
28-
proxy_redirect off;
2928
proxy_buffering off;
3029
proxy_set_header X-Forwarded-Port $server_port;
3130
proxy_cookie_path / "/; HTTPOnly; Secure";

ghost.subdomain.conf.sample

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Version 2021/05/18
1+
## Version 2021/07/08
22
# make sure that your dns has a cname set for ghost and that your ghost config is not using a subdirectory.
33

44
server {
@@ -36,6 +36,5 @@ server {
3636
set $upstream_proto http;
3737
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
3838

39-
proxy_redirect off;
4039
}
4140
}

ghost.subfolder.conf.sample

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Version 2021/05/18
1+
## Version 2021/07/08
22
# Make sure you are using a subfolder in your ghost config file. https://ghost.org/docs/concepts/config/#url
33
# Note: /ghost/ is by default used for the admin page. See https://ghost.org/docs/concepts/config/#admin-url
44

@@ -11,8 +11,8 @@ location /blog {
1111
#auth_request /auth;
1212
#error_page 401 =200 /ldaplogin;
1313

14-
# enable for Authelia, also enable authelia-server.conf in the default site config
15-
#include /config/nginx/authelia-location.conf;
14+
# enable for Authelia, also enable authelia-server.conf in the default site config
15+
#include /config/nginx/authelia-location.conf;
1616

1717
include /config/nginx/proxy.conf;
1818
include /config/nginx/resolver.conf;
@@ -21,5 +21,4 @@ location /blog {
2121
set $upstream_proto http;
2222
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
2323

24-
proxy_redirect off;
2524
}

nextcloud.subfolder.conf.sample

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Version 2021/05/18
1+
## Version 2021/07/08
22
# Assuming this container is called "swag", edit your nextcloud container's config
33
# located at /config/www/nextcloud/config/config.php and add the following lines before the ");":
44
# 'trusted_proxies' => ['swag'],
@@ -36,6 +36,5 @@ location ^~ /nextcloud/ {
3636
proxy_max_temp_file_size 2048m;
3737
proxy_set_header Range $http_range;
3838
proxy_set_header If-Range $http_if_range;
39-
proxy_redirect off;
4039
proxy_ssl_session_reuse off;
4140
}

synclounge.subdomain.conf.sample

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Version 2021/05/18
1+
## Version 2021/07/08
22
# Use this with SyncLounge v3 and up.
33
# Make sure that you do not have HSTS enabled, otherwise http access won't work
44
# Make sure that your dns has a cname set for synclounge
@@ -40,7 +40,6 @@ server {
4040
set $upstream_proto http;
4141
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
4242

43-
proxy_redirect off;
4443
proxy_buffering off;
4544
proxy_socket_keepalive on;
4645
proxy_set_header X-Forwarded-Proto $scheme;

synclounge.subfolder.conf.sample

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Version 2021/05/18
1+
## Version 2021/07/08
22
# Use this with SyncLounge v3 or up
33
#
44
# To allow non-secure connections (http), which is required by some Plex clients, modify the first block in site-confs/default to look something like this:
@@ -45,7 +45,6 @@ location /synclounge/ {
4545

4646
rewrite /synclounge(.*) $1 break;
4747

48-
proxy_redirect off;
4948
proxy_buffering off;
5049
proxy_socket_keepalive on;
5150
proxy_set_header X-Forwarded-Proto $scheme;

youtube-dl.subfolder.conf.sample

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Version 2021/05/18
1+
## Version 2021/07/08
22
# Works with this youtube-dl Fork: https://github.com/nbr23/youtube-dl-server
33

44
location /youtube-dl {
@@ -21,7 +21,6 @@ location ^~ /youtube-dl/ {
2121
set $upstream_proto http;
2222
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
2323

24-
proxy_redirect off;
2524
proxy_set_header Referer '';
2625
# next line doesn't work with the latest version of: https://github.com/nbr23/youtube-dl-server
2726
# proxy_set_header Host $upstream_app:8080;

0 commit comments

Comments
 (0)