I am running rancher in kubernetes with ingress-controller.
I have an application (rancher2) that refuses to work without X-forwarded-port header set to 443. Cloudflare doesn’t set the header so Kong sets it to it’s
I could not find a way to override this in rancher 2 options. Will ask there too if there is a way to override it.
I tried using the
request-transformer plugin to set these headers without luck.
apiVersion: configuration.konghq.com/v1 config: remove: headers: - X-Forwarded-Port add: headers: - 'X-Forwarded-Port: 443' kind: KongPlugin metadata: name: xf-port-443 namespace: rancher plugin: request-transformer
apiVersion: configuration.konghq.com/v1 config: replace: headers: - 'X-Forwarded-Port: 443' kind: KongPlugin metadata: name: xf-port-443 namespace: rancher plugin: request-transformer
I still see the header set to 8443.
Shouldn’t this work? Thanks