Skip to content

Commit

Permalink
Set real_ip header for OPC as X-Real-IP (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrislrobinson authored Jul 8, 2024
1 parent 7797a77 commit bc6e716
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion usr/local/sbin/entrypoint.d/05-opc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit bc6e716

Please sign in to comment.