From bc6e716cfb5b488925fb7288d0bfe0ba193ee6d0 Mon Sep 17 00:00:00 2001 From: Chris Robinson <96998440+chrislrobinson@users.noreply.github.com> Date: Mon, 8 Jul 2024 13:34:24 +0100 Subject: [PATCH] Set real_ip header for OPC as X-Real-IP (#45) --- usr/local/sbin/entrypoint.d/05-opc.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/local/sbin/entrypoint.d/05-opc.sh b/usr/local/sbin/entrypoint.d/05-opc.sh index 0706c3e..c3035fe 100755 --- a/usr/local/sbin/entrypoint.d/05-opc.sh +++ b/usr/local/sbin/entrypoint.d/05-opc.sh @@ -15,7 +15,7 @@ opc_main() { # OPC uses nginx on the host as a reverse proxy boot_log_message INFO "[opc] Enabling X-Forwarded- headers" - export HTTP_USER_REAL_IP_HEADER="X-Forwarded-For" + export HTTP_USER_REAL_IP_HEADER="X-Real-IP" export HTTP_USER_REAL_PROTO_HEADER="X-Forwarded-Proto" export HTTP_USER_REAL_HOST_HEADER="X-Forwarded-Host" export HTTP_USER_REAL_PORT_HEADER="X-Forwarded-Port"