From 040e663b374ecd1fda75e8f6168df566687bbb76 Mon Sep 17 00:00:00 2001 From: Joachim Bauch Date: Thu, 23 May 2024 09:32:10 +0200 Subject: [PATCH] Add examples on how to set "X-Real-IP" for Apache and Caddy. --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 1c9ad8a..fcba4a8 100644 --- a/README.md +++ b/README.md @@ -309,6 +309,8 @@ interface on port `8080` below): # Enable proxying Websocket requests to the standalone signaling server. ProxyPass "/standalone-signaling/" "ws://127.0.0.1:8080/" + RequestHeader set X-Real-IP %{REMOTE_ADDR}s + RewriteEngine On # Websocket connections from the clients. RewriteRule ^/standalone-signaling/spreed/$ - [L] @@ -344,6 +346,7 @@ myserver.domain.invalid { route /standalone-signaling/* { uri strip_prefix /standalone-signaling reverse_proxy http://127.0.0.1:8080 + header_up X-Real-IP {remote_host} } } ```