Skip to content

Commit 54ede40

Browse files
committed
Cleanup redundant headers from proxy.conf
Also general cleanup of whitespace
1 parent 6449967 commit 54ede40

File tree

60 files changed

+78
-132
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+78
-132
lines changed

adguard.subdomain.conf.sample

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,6 @@ server {
4444
set $upstream_port 80;
4545
set $upstream_proto http;
4646
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
47-
47+
4848
}
4949
}

adminer.subfolder.conf.sample

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
location /adminer {
44
return 301 $scheme://$host/adminer/;
55
}
6+
67
location ^~ /adminer/ {
78
# enable the next two lines for http auth
89
#auth_basic "Restricted";

bazarr.subdomain.conf.sample

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ server {
3535
set $upstream_proto http;
3636
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
3737

38-
proxy_set_header Upgrade $http_upgrade;
39-
proxy_set_header Connection "Upgrade";
4038
}
4139

4240
location ~ (/bazarr)?/api {
@@ -47,7 +45,5 @@ server {
4745
set $upstream_proto http;
4846
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
4947

50-
proxy_set_header Upgrade $http_upgrade;
51-
proxy_set_header Connection "Upgrade";
5248
}
5349
}

bazarr.subfolder.conf.sample

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
location /bazarr {
44
return 301 $scheme://$host/bazarr/;
55
}
6+
67
location ^~ /bazarr/ {
78
# enable the next two lines for http auth
89
#auth_basic "Restricted";
@@ -22,8 +23,6 @@ location ^~ /bazarr/ {
2223
set $upstream_proto http;
2324
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
2425

25-
proxy_set_header Upgrade $http_upgrade;
26-
proxy_set_header Connection "Upgrade";
2726
}
2827

2928
location ^~ /bazarr/api {
@@ -34,6 +33,4 @@ location ^~ /bazarr/api {
3433
set $upstream_proto http;
3534
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
3635

37-
proxy_set_header Upgrade $http_upgrade;
38-
proxy_set_header Connection "Upgrade";
3936
}

beets.subfolder.conf.sample

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ location /beets {
1919
set $upstream_proto http;
2020
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
2121

22-
proxy_set_header Host $host;
23-
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
2422
proxy_set_header X-Scheme $scheme;
2523
proxy_set_header X-Script-Name /beets;
2624
}

bitwarden.subdomain.conf.sample

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# make sure that your dns has a cname set for bitwarden and that your bitwarden container is not using a base url
22
# make sure your bitwarden container is named "bitwarden"
3+
# set the environment variable WEBSOCKET_ENABLED=true on your bitwarden container
34

45
server {
56
listen 443 ssl;
@@ -38,16 +39,35 @@ server {
3839

3940
}
4041

41-
location /notifications/hub {
42+
location /admin {
43+
# enable the next two lines for http auth
44+
#auth_basic "Restricted";
45+
#auth_basic_user_file /config/nginx/.htpasswd;
46+
47+
# enable the next two lines for ldap auth
48+
#auth_request /auth;
49+
#error_page 401 =200 /ldaplogin;
50+
51+
# enable for Authelia
52+
#include /config/nginx/authelia-location.conf;
53+
4254
include /config/nginx/proxy.conf;
4355
resolver 127.0.0.11 valid=30s;
4456
set $upstream_app bitwarden;
4557
set $upstream_port 80;
4658
set $upstream_proto http;
4759
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
4860

49-
proxy_set_header Upgrade $http_upgrade;
50-
proxy_set_header Connection "Upgrade";
61+
}
62+
63+
location /notifications/hub {
64+
include /config/nginx/proxy.conf;
65+
resolver 127.0.0.11 valid=30s;
66+
set $upstream_app bitwarden;
67+
set $upstream_port 3012;
68+
set $upstream_proto http;
69+
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
70+
5171
}
5272

5373
location /notifications/hub/negotiate {
@@ -59,5 +79,4 @@ server {
5979
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
6080

6181
}
62-
6382
}

bookstack.subdomain.conf.sample

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,5 @@ server {
3737
set $upstream_proto http;
3838
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
3939

40-
}
40+
}
4141
}

calibre-web.subfolder.conf.sample

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
location /calibre-web {
44
return 301 $scheme://$host/calibre-web/;
55
}
6+
67
location ^~ /calibre-web/ {
78
# enable the next two lines for http auth
89
#auth_basic "Restricted";

calibre.subdomain.conf.sample

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,5 @@ server {
3535
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
3636

3737
proxy_buffering off;
38-
proxy_set_header Upgrade $http_upgrade;
39-
proxy_set_header Connection $http_connection;
4038
}
4139
}

calibre.subfolder.conf.sample

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
location /calibre {
44
return 301 $scheme://$host/calibre/;
55
}
6+
67
location ^~ /calibre/ {
78
# enable the next two lines for http auth
89
#auth_basic "Restricted";

0 commit comments

Comments
 (0)