Merge pull request #529 from linuxserver/warden-api

Add api endpoints for bitwarden/vaultwarden
This commit is contained in:
Eric Nemchik 2023-02-13 13:30:52 -06:00 committed by GitHub
commit 80c70c31fc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 44 additions and 4 deletions

View file

@ -1,4 +1,4 @@
## Version 2023/02/05 ## Version 2023/02/13
# make sure that your bitwarden container is named bitwarden # make sure that your bitwarden container is named bitwarden
# make sure that your dns has a cname set for bitwarden # make sure that your dns has a cname set for bitwarden
# set the environment variable WEBSOCKET_ENABLED=true on your bitwarden container # set the environment variable WEBSOCKET_ENABLED=true on your bitwarden container
@ -68,6 +68,16 @@ server {
} }
location ~ (/bitwarden)?/api {
include /config/nginx/proxy.conf;
include /config/nginx/resolver.conf;
set $upstream_app bitwarden;
set $upstream_port 80;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
}
location ~ (/bitwarden)?/notifications/hub { location ~ (/bitwarden)?/notifications/hub {
include /config/nginx/proxy.conf; include /config/nginx/proxy.conf;
include /config/nginx/resolver.conf; include /config/nginx/resolver.conf;

View file

@ -1,4 +1,4 @@
## Version 2023/02/05 ## Version 2023/02/13
# make sure that your bitwarden container is named bitwarden # make sure that your bitwarden container is named bitwarden
# make sure that bitwarden is set to work with the base url /bitwarden/ # make sure that bitwarden is set to work with the base url /bitwarden/
## Environmental Variable DOMAIN=https://<DOMAIN>/bitwarden must be set in bitwarden container including subfolder. ## Environmental Variable DOMAIN=https://<DOMAIN>/bitwarden must be set in bitwarden container including subfolder.
@ -54,6 +54,16 @@ location ~ (/bitwarden)?/admin {
} }
location ~ (/bitwarden)?/api {
include /config/nginx/proxy.conf;
include /config/nginx/resolver.conf;
set $upstream_app bitwarden;
set $upstream_port 80;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
}
location ~ (/bitwarden)?/notifications/hub { location ~ (/bitwarden)?/notifications/hub {
include /config/nginx/proxy.conf; include /config/nginx/proxy.conf;
include /config/nginx/resolver.conf; include /config/nginx/resolver.conf;

View file

@ -1,4 +1,4 @@
## Version 2023/02/05 ## Version 2023/02/13
# make sure that your vaultwarden container is named vaultwarden # make sure that your vaultwarden container is named vaultwarden
# make sure that your dns has a cname set for vaultwarden # make sure that your dns has a cname set for vaultwarden
# set the environment variable WEBSOCKET_ENABLED=true on your vaultwarden container # set the environment variable WEBSOCKET_ENABLED=true on your vaultwarden container
@ -68,6 +68,16 @@ server {
} }
location ~ (/vaultwarden)?/api {
include /config/nginx/proxy.conf;
include /config/nginx/resolver.conf;
set $upstream_app vaultwarden;
set $upstream_port 80;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
}
location ~ (/vaultwarden)?/notifications/hub { location ~ (/vaultwarden)?/notifications/hub {
include /config/nginx/proxy.conf; include /config/nginx/proxy.conf;
include /config/nginx/resolver.conf; include /config/nginx/resolver.conf;

View file

@ -1,4 +1,4 @@
## Version 2023/02/05 ## Version 2023/02/13
# make sure that your vaultwarden container is named vaultwarden # make sure that your vaultwarden container is named vaultwarden
# make sure that vaultwarden is set to work with the base url /vaultwarden/ # make sure that vaultwarden is set to work with the base url /vaultwarden/
## Environmental Variable DOMAIN=https://<DOMAIN>/vaultwarden must be set in vaultwarden container including subfolder. ## Environmental Variable DOMAIN=https://<DOMAIN>/vaultwarden must be set in vaultwarden container including subfolder.
@ -54,6 +54,16 @@ location ~ (/vaultwarden)?/admin {
} }
location ~ (/vaultwarden)?/api {
include /config/nginx/proxy.conf;
include /config/nginx/resolver.conf;
set $upstream_app vaultwarden;
set $upstream_port 80;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
}
location ~ (/vaultwarden)?/notifications/hub { location ~ (/vaultwarden)?/notifications/hub {
include /config/nginx/proxy.conf; include /config/nginx/proxy.conf;
include /config/nginx/resolver.conf; include /config/nginx/resolver.conf;