Hello!
I've installed Traefik on Kubernetes ( OVH services ) with the Helm Chart and this TOML configuration.
My NginX/PHP application don't receive the real IP address ( REMOTE_ADDRESS
, X-REAL-IP
/ X-FORWARDED-FOR
).
I've read I need to put passHostHeader = true
somewhere but I don't know in which section, I've tried multiple position in the TOML without success. Any idea please?
apiVersion: v1
data:
traefik.toml: |
# traefik.toml
logLevel = "INFO"
defaultEntryPoints = ["http","https"]
passHostHeader = true
[entryPoints]
[entryPoints.http]
address = ":80"
compress = true
passHostHeader = true
[entryPoints.http.redirect]
regex = "^http://(.*)"
replacement = "https://$1"
[entryPoints.https]
address = ":443"
compress = true
[entryPoints.https.tls]
[[entryPoints.https.tls.certificates]]
CertFile = "/ssl/tls.crt"
KeyFile = "/ssl/tls.key"
[kubernetes]
[traefikLog]
format = "json"
[acme]
email = "xxxxxxxxxxxxxxxl@gmail.com"
storage = "/acme/acme.json"
entryPoint = "https"
onHostRule = true
[acme.tlsChallenge]
kind: ConfigMap
metadata:
creationTimestamp: "2019-04-11T08:46:19Z"
labels:
app: traefik
chart: traefik-1.66.0
heritage: Tiller
release: traefik
name: traefik
namespace: kube-system