If the setup uses a Kubernetes Nginx Ingress Controller, use an annotation:
If the setup uses a Kubernetes Nginx Pod, edit the configMap instead:
a. Edit the config files
b. Reboot the Nginx pod
nginx.ingress.kubernetes.io/configuration-snippet: | proxy_set_header X-JFrog-Override-Base-Url https://<global-domain>;
If the setup uses a Kubernetes Nginx Pod, edit the configMap instead:
a. Edit the config files
# Set the Kube_editor Environment Variable
export KUBE_EDITOR="vim"
# Edit the configMap - Helm 3.X will automatically track this change
kubectl edit configmap arti-artifactory-nginx-artifactory-conf# Set the header:
#proxy_set_header X-JFrog-Override-Base-Url $http_x_forwarded_proto://$host:$server_port; proxy_set_header X-JFrog-Override-Base-Url http://load-balancer.com;
b. Reboot the Nginx pod
kubectl delete pod arti-artifactory-nginx-67fd6b668c-24znw
And after the header is set, you should be all set! Traffic going through the Geo-LB will be using the Geo-LB URL for everything.