0
0
Fork 0
mirror of https://github.com/dani-garcia/vaultwarden synced 2024-11-15 22:42:51 +01:00

Changed http redict for nginx to a working configuration, so bitwarden works in combination with other reverse proxied sites.

horbix28 2022-04-22 08:56:51 +02:00
parent d1921961a2
commit 35e6b9f1b7

@ -240,12 +240,20 @@ upstream vaultwarden-ws {
# Redirect HTTP to HTTPS
server {
if ($host = bitwarden.example.tld) {
return 301 https://$host$request_uri;
}
listen 80;
listen [::]:80;
server_name vaultwarden.example.tld;
return 301 https://$host$request_uri;
server_name bitwarden.example.tld;
return 404;
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;