For me the redirect is happening only to the host (ie metrics.staging.com) and I want to redirect to metrics.staging.com:9099 ? Does anyone know how to redirect it to a host:port?
My ingress: nginx.ingress.kubernetes.io/auth-signin: https://oauth2-qa.staging.com:9043/oauth2/start?rd=$scheme://$host$request_uri nginx.ingress.kubernetes.io/auth-url: https://oauth2-qa.staging.com:9043/oauth2/auth
My whitlist-domain and cookie-domain are both set to .staging.com
I need something like: nginx.ingress.kubernetes.io/auth-signin: https://oauth2-qa.staging.com:9043/oauth2/start?rd=$scheme://$host:9099$request_uri
ingress-nginx version 4.2.0.
Any help is much appreciated!