mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-03-23 10:19:21 -07:00
Updated Proxy examples (markdown)
@@ -57,6 +57,22 @@ server {
|
|||||||
location /notifications/hub/negotiate {
|
location /notifications/hub/negotiate {
|
||||||
proxy_pass http://<SERVER>:80;
|
proxy_pass http://<SERVER>:80;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Optionally add extra authentication besides the AUTH_TOKEN
|
||||||
|
# If you don't want this, leave this part out
|
||||||
|
location /admin {
|
||||||
|
# See: https://docs.nginx.com/nginx/admin-guide/security-controls/configuring-http-basic-authentication/
|
||||||
|
auth_basic "Private";
|
||||||
|
auth_basic_user_file /path/to/htpasswd_file;
|
||||||
|
|
||||||
|
proxy_set_header Host $host;
|
||||||
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
|
|
||||||
|
proxy_pass http://<SERVER>:80;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user