Skip to content

Commit 0c20be8

Browse files
authored
Merge pull request #624 from linuxserver/warden-updates
update bitwarden/vaultwarden templates
2 parents 94e9339 + ddcc002 commit 0c20be8

File tree

4 files changed

+21
-127
lines changed

4 files changed

+21
-127
lines changed

bitwarden.subdomain.conf.sample

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1-
## Version 2023/05/31
1+
## Version 2023/11/12
22
# make sure that your bitwarden container is named bitwarden
33
# make sure that your dns has a cname set for bitwarden
4-
# set the environment variable WEBSOCKET_ENABLED=true on your bitwarden container
4+
# if you are using bitwarden (the official image), use the bitwarden conf
5+
# if you are using vaultwarden (an unofficial implementation), use the vaultwarden conf
6+
#
7+
# bitwarden defaults to port 8080 and can be changed using the environment variable BW_PORT_HTTP on the bitwarden container
58

69
server {
710
listen 443 ssl http2;
@@ -39,7 +42,7 @@ server {
3942
include /config/nginx/proxy.conf;
4043
include /config/nginx/resolver.conf;
4144
set $upstream_app bitwarden;
42-
set $upstream_port 80;
45+
set $upstream_port 8080;
4346
set $upstream_proto http;
4447
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
4548

@@ -62,7 +65,7 @@ server {
6265
include /config/nginx/proxy.conf;
6366
include /config/nginx/resolver.conf;
6467
set $upstream_app bitwarden;
65-
set $upstream_port 80;
68+
set $upstream_port 8080;
6669
set $upstream_proto http;
6770
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
6871

@@ -72,7 +75,7 @@ server {
7275
include /config/nginx/proxy.conf;
7376
include /config/nginx/resolver.conf;
7477
set $upstream_app bitwarden;
75-
set $upstream_port 80;
78+
set $upstream_port 8080;
7679
set $upstream_proto http;
7780
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
7881

@@ -82,17 +85,7 @@ server {
8285
include /config/nginx/proxy.conf;
8386
include /config/nginx/resolver.conf;
8487
set $upstream_app bitwarden;
85-
set $upstream_port 3012;
86-
set $upstream_proto http;
87-
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
88-
89-
}
90-
91-
location ~ (/bitwarden)?/notifications/hub/negotiate {
92-
include /config/nginx/proxy.conf;
93-
include /config/nginx/resolver.conf;
94-
set $upstream_app bitwarden;
95-
set $upstream_port 80;
88+
set $upstream_port 8080;
9689
set $upstream_proto http;
9790
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
9891

bitwarden.subfolder.conf.sample

Lines changed: 0 additions & 86 deletions
This file was deleted.

vaultwarden.subdomain.conf.sample

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1-
## Version 2023/05/31
1+
## Version 2023/11/12
22
# make sure that your vaultwarden container is named vaultwarden
33
# make sure that your dns has a cname set for vaultwarden
4-
# set the environment variable WEBSOCKET_ENABLED=true on your vaultwarden container
4+
# if you are using bitwarden (the official image), use the bitwarden conf
5+
# if you are using vaultwarden (an unofficial implementation), use the vaultwarden conf
6+
#
7+
# vaultwarden defaults to port 80 and can be changed using the environment variable ROCKET_PORT on the vaultwarden container
58

69
server {
710
listen 443 ssl http2;
@@ -79,16 +82,6 @@ server {
7982
}
8083

8184
location ~ (/vaultwarden)?/notifications/hub {
82-
include /config/nginx/proxy.conf;
83-
include /config/nginx/resolver.conf;
84-
set $upstream_app vaultwarden;
85-
set $upstream_port 3012;
86-
set $upstream_proto http;
87-
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
88-
89-
}
90-
91-
location ~ (/vaultwarden)?/notifications/hub/negotiate {
9285
include /config/nginx/proxy.conf;
9386
include /config/nginx/resolver.conf;
9487
set $upstream_app vaultwarden;

vaultwarden.subfolder.conf.sample

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
1-
## Version 2023/03/27
1+
## Version 2023/11/12
22
# make sure that your vaultwarden container is named vaultwarden
33
# make sure that vaultwarden is set to work with the base url /vaultwarden/
4-
## Environmental Variable DOMAIN=https://<DOMAIN>/vaultwarden must be set in vaultwarden container including subfolder.
5-
## This is using ports 80 and 3012
4+
# if you are using bitwarden (the official image), use the bitwarden conf
5+
# if you are using vaultwarden (an unofficial implementation), use the vaultwarden conf
6+
#
7+
# vaultwarden defaults to port 80 and can be changed using the environment variable ROCKET_PORT on the vaultwarden container
8+
#
9+
# Environmental Variable DOMAIN=https://<DOMAIN>/vaultwarden must be set in vaultwarden container including subfolder.
610

711
location /vaultwarden {
812
return 301 $scheme://$host/vaultwarden/;
@@ -65,16 +69,6 @@ location ~ (/vaultwarden)?/api {
6569
}
6670

6771
location ~ (/vaultwarden)?/notifications/hub {
68-
include /config/nginx/proxy.conf;
69-
include /config/nginx/resolver.conf;
70-
set $upstream_app vaultwarden;
71-
set $upstream_port 3012;
72-
set $upstream_proto http;
73-
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
74-
75-
}
76-
77-
location ~ (/vaultwarden)?/notifications/hub/negotiate {
7872
include /config/nginx/proxy.conf;
7973
include /config/nginx/resolver.conf;
8074
set $upstream_app vaultwarden;

0 commit comments

Comments
 (0)