Skip to content

Instantly share code, notes, and snippets.

@phanlyhuynh
Created March 22, 2023 03:06
Show Gist options
  • Save phanlyhuynh/143bcee3bfedd3cd6ea1083512e688bb to your computer and use it in GitHub Desktop.
Save phanlyhuynh/143bcee3bfedd3cd6ea1083512e688bb to your computer and use it in GitHub Desktop.
Show Real IP Ingress nginx
defaults
...
option forwardfor
controller:
service:
externalTrafficPolicy: "Local"
config:
enable-real-ip: "true"
compute-full-forwarded-for: "true"
forwarded-for-header: X-Forwarded-For
use-forwarded-headers: "true"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment