0
0
Fork 0
mirror of https://github.com/dani-garcia/vaultwarden synced 2024-09-27 12:58:58 +02:00

Updated Proxy examples (markdown)

Mathijs van Veluw 2021-02-09 14:33:07 +01:00
parent a4c0629239
commit b0987a579f

@ -496,13 +496,25 @@ labels:
</details>
<details>
<summary>HAproxy (by patbel-pwr)</summary><br/>
<summary>HAproxy (by BlackDex)</summary><br/>
Add these lines in `frontend https` section in order to forward ips for all your proxied services.
```
```haproxy
frontend bitwarden_rs
bind 0.0.0.0:80
option forwardfor header X-Real-IP
http-request set-header X-Real-IP %[src]
default_backend bitwarden_rs_http
use_backend bitwarden_rs_ws if { path_beg /notifications/hub } !{ path_beg /notifications/hub/negotiate }
backend bitwarden_rs_http
# Enable compression if you want
# compression algo gzip
# compression type text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript
server bwrshttp 0.0.0.0:8080
backend bitwarden_rs_ws
server bwrsws 0.0.0.0:3012
```
</details>