mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-03-24 18:59:21 -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
|
# Redirect HTTP to HTTPS
|
||||||
server {
|
server {
|
||||||
|
if ($host = bitwarden.example.tld) {
|
||||||
|
return 301 https://$host$request_uri;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
listen 80;
|
listen 80;
|
||||||
listen [::]:80;
|
listen [::]:80;
|
||||||
server_name vaultwarden.example.tld;
|
server_name bitwarden.example.tld;
|
||||||
return 301 https://$host$request_uri;
|
return 404;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 443 ssl http2;
|
listen 443 ssl http2;
|
||||||
listen [::]:443 ssl http2;
|
listen [::]:443 ssl http2;
|
||||||
|
|||||||
Reference in New Issue
Block a user