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
45server {
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}
0 commit comments