mirror of
https://github.com/linuxserver/reverse-proxy-confs.git
synced 2025-07-06 13:01:35 -07:00
Merge pull request #529 from linuxserver/warden-api
Add api endpoints for bitwarden/vaultwarden
This commit is contained in:
commit
80c70c31fc
4 changed files with 44 additions and 4 deletions
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue