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.
parent
d1921961a2
commit
35e6b9f1b7
1 changed files with 10 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue