mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-03-22 09:49:20 -07:00
Changed http redict for nginx to a working configuration, so bitwarden works in combination with other reverse proxied sites.
@@ -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