From df9ba0fb76d3d0e8bb122e6a63e1153eb80f46c7 Mon Sep 17 00:00:00 2001 From: Namkhai B <33267474+forkbomb9@users.noreply.github.com> Date: Fri, 3 Sep 2021 23:03:49 +0000 Subject: [PATCH] Add lighttpd proxy example --- Proxy-examples.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/Proxy-examples.md b/Proxy-examples.md index a97befc..4a02a77 100644 --- a/Proxy-examples.md +++ b/Proxy-examples.md @@ -75,6 +75,29 @@ If you prefer, you can also directly specify a value instead of substituting an ``` +
+lighttpd (by forkbomb9)
+ +```lighttpd +server.modules += ( "mod_proxy" ) + +$HTTP["host"] == "vault.example.net" { + proxy.header = ( + "https-remap" => "enable", + "upgrade" => "enable", + "connect" => "enable" + ) + proxy.forwarded = ( "for" => 1, + "proto" => 1, + ) + proxy.server = ( "" => ("vaultwarden" => ( "host" => "", "port" => 4567 ))) +} +``` + +You'll have to set `IP_HEADER=X-Forwarded-For` instead of `X-Real-IP` + +
+
Nginx (by shauder)