Using nginx ingress annotations to change host header for backend service


I’m running Gitlab on Google Kubernetes Engine. Gitlab Pages serves static websites for URLs like I am trying to add nginx ingress rules to proxy something like to Gitlab Pages as though the user requested

I have tried setting the annotation to the desired pages URL, but it appears to still receive a request for (which it does not understand). Does anyone have ideas on how to better accomplish this goal? My primary desire is to proxy to the internal service IP rather than the external IP for *

P.S. Apologies for any bad formatting. I am completely blind, so sometimes that gets difficult. :slight_smile:

Oh. In addition, I have seen notes about Ruby using the X-Forwarded-Host header instead of Host. Does anyone know how I might overwrite this in the ingress?