mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-03-26 11:49:21 -07:00
Updated Proxy examples (markdown)
@@ -588,14 +588,19 @@ Add these lines to your haproxy configuration.
|
|||||||
```haproxy
|
```haproxy
|
||||||
frontend vaultwarden
|
frontend vaultwarden
|
||||||
bind 0.0.0.0:80
|
bind 0.0.0.0:80
|
||||||
option forwardfor header X-Real-IP
|
|
||||||
http-request set-header X-Real-IP %[src]
|
|
||||||
default_backend vaultwarden_http
|
default_backend vaultwarden_http
|
||||||
|
|
||||||
backend vaultwarden_http
|
backend vaultwarden_http
|
||||||
# Enable compression if you want
|
# Enable compression if you want
|
||||||
# compression algo gzip
|
# compression algo gzip
|
||||||
# compression type text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript
|
# compression type text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript
|
||||||
|
# Vaultwarden does not support the forwarded header, but you can enable it
|
||||||
|
# option forward
|
||||||
|
# Add the x-forwarded-for header
|
||||||
|
option forwardfor
|
||||||
|
# Set the Source IP in the `X-Real-IP` header
|
||||||
|
http-request set-header X-Real-IP %[src]
|
||||||
|
# Send the traffic to the local instance
|
||||||
server vwhttp 0.0.0.0:8080 alpn http/1.1
|
server vwhttp 0.0.0.0:8080 alpn http/1.1
|
||||||
```
|
```
|
||||||
</details>
|
</details>
|
||||||
|
|||||||
Reference in New Issue
Block a user