In Openshift 4.6, I have deployed an app that exposes an nginx service. When using http, I can see an IP in the nginx logs for the field $http_x_forwarded_for. Whenever I switch to https, the $http_x_forwarded_for header is missing (-).
The route config for http:
spec:
host: <my.host.com>
to:
kind: Service
name: my-nginx
weight: 100
port:
targetPort: 80-tcp
wildcardPolicy: None
The route config for https:
spec:
host: <my.host.com>
to:
kind: Service
name: my-nginx
weight: 100
port:
targetPort: 443-tcp
tls:
termination: passthrough
wildcardPolicy: None
Is there a way I can preserve the http headers for https requests?