From df0df716b892e42ac2c21f2fc1833a2697201b97 Mon Sep 17 00:00:00 2001 From: Sam Al-Sapti Date: Sun, 1 Oct 2023 15:52:31 +0200 Subject: [PATCH] Add X-Real-IP to Caddy for SearXNG --- roles/docker_services/templates/caddy/Caddyfile.j2 | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/docker_services/templates/caddy/Caddyfile.j2 b/roles/docker_services/templates/caddy/Caddyfile.j2 index ba562d0..0cefbde 100644 --- a/roles/docker_services/templates/caddy/Caddyfile.j2 +++ b/roles/docker_services/templates/caddy/Caddyfile.j2 @@ -133,6 +133,7 @@ www.{{ services.samsapti_dev.domain }} { reverse_proxy searxng:8080 { header_up X-Forwarded-Port {http.request.port} header_up X-Forwarded-Proto {http.request.scheme} + header_up X-Real-IP {remote_host} } } }