Skip to content

Commit

Permalink
Merge pull request #362 from linuxserver/redirect
Browse files Browse the repository at this point in the history
remove dupe config that errors in nginx 1.20
  • Loading branch information
Roxedus authored Jul 8, 2021
2 parents 47e0494 + c9ee2b7 commit ea7e76e
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 18 deletions.
3 changes: 1 addition & 2 deletions freshrss.subdomain.conf.sample
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Version 2021/05/18
## Version 2021/07/08
# make sure that your dns has a cname set for freshrss

server {
Expand Down Expand Up @@ -36,7 +36,6 @@ server {
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;

proxy_redirect off;
proxy_buffering off;
proxy_set_header X-Forwarded-Port $server_port;
proxy_cookie_path / "/; HTTPOnly; Secure";
Expand Down
3 changes: 1 addition & 2 deletions freshrss.subfolder.conf.sample
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Version 2021/05/18
## Version 2021/07/08
# freshrss does not have a base url setting

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

rewrite /freshrss(.*) $1 break;
proxy_redirect off;
proxy_buffering off;
proxy_set_header X-Forwarded-Port $server_port;
proxy_cookie_path / "/; HTTPOnly; Secure";
Expand Down
3 changes: 1 addition & 2 deletions ghost.subdomain.conf.sample
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Version 2021/05/18
## Version 2021/07/08
# make sure that your dns has a cname set for ghost and that your ghost config is not using a subdirectory.

server {
Expand Down Expand Up @@ -36,6 +36,5 @@ server {
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;

proxy_redirect off;
}
}
7 changes: 3 additions & 4 deletions ghost.subfolder.conf.sample
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Version 2021/05/18
## Version 2021/07/08
# Make sure you are using a subfolder in your ghost config file. https://ghost.org/docs/concepts/config/#url
# Note: /ghost/ is by default used for the admin page. See https://ghost.org/docs/concepts/config/#admin-url

Expand All @@ -11,8 +11,8 @@ location /blog {
#auth_request /auth;
#error_page 401 =200 /ldaplogin;

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

include /config/nginx/proxy.conf;
include /config/nginx/resolver.conf;
Expand All @@ -21,5 +21,4 @@ location /blog {
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;

proxy_redirect off;
}
3 changes: 1 addition & 2 deletions nextcloud.subfolder.conf.sample
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Version 2021/05/18
## Version 2021/07/08
# Assuming this container is called "swag", edit your nextcloud container's config
# located at /config/www/nextcloud/config/config.php and add the following lines before the ");":
# 'trusted_proxies' => ['swag'],
Expand Down Expand Up @@ -36,6 +36,5 @@ location ^~ /nextcloud/ {
proxy_max_temp_file_size 2048m;
proxy_set_header Range $http_range;
proxy_set_header If-Range $http_if_range;
proxy_redirect off;
proxy_ssl_session_reuse off;
}
3 changes: 1 addition & 2 deletions synclounge.subdomain.conf.sample
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Version 2021/05/18
## Version 2021/07/08
# Use this with SyncLounge v3 and up.
# Make sure that you do not have HSTS enabled, otherwise http access won't work
# Make sure that your dns has a cname set for synclounge
Expand Down Expand Up @@ -40,7 +40,6 @@ server {
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;

proxy_redirect off;
proxy_buffering off;
proxy_socket_keepalive on;
proxy_set_header X-Forwarded-Proto $scheme;
Expand Down
3 changes: 1 addition & 2 deletions synclounge.subfolder.conf.sample
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Version 2021/05/18
## Version 2021/07/08
# Use this with SyncLounge v3 or up
#
# 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:
Expand Down Expand Up @@ -45,7 +45,6 @@ location /synclounge/ {

rewrite /synclounge(.*) $1 break;

proxy_redirect off;
proxy_buffering off;
proxy_socket_keepalive on;
proxy_set_header X-Forwarded-Proto $scheme;
Expand Down
3 changes: 1 addition & 2 deletions youtube-dl.subfolder.conf.sample
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Version 2021/05/18
## Version 2021/07/08
# Works with this youtube-dl Fork: https://github.com/nbr23/youtube-dl-server

location /youtube-dl {
Expand All @@ -21,7 +21,6 @@ location ^~ /youtube-dl/ {
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;

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

0 comments on commit ea7e76e

Please sign in to comment.