mirror of
https://github.com/dani-garcia/vaultwarden.wiki.git
synced 2026-08-03 21:03:44 +03:00
Changed http redict for nginx to a working configuration, so bitwarden works in combination with other reverse proxied sites.
+10
-2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user