From b0987a579f50717bd4f8ca68cc9f0e68c3f499b4 Mon Sep 17 00:00:00 2001 From: Mathijs van Veluw Date: Tue, 9 Feb 2021 14:33:07 +0100 Subject: [PATCH] Updated Proxy examples (markdown) --- Proxy-examples.md | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/Proxy-examples.md b/Proxy-examples.md index 0c88897..ad9b5d4 100644 --- a/Proxy-examples.md +++ b/Proxy-examples.md @@ -496,13 +496,25 @@ labels:
-HAproxy (by patbel-pwr)
+HAproxy (by BlackDex)
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 ```
\ No newline at end of file