To get the Load Balancer URL to work, you need to set an HTTP Header. This is the X-JFrog-Override-Base-Url, it has to be the Load Balancer URL. This header causes Artifactory to use its value for metadata and redirects.
The default configuration determines the Base URL based on incoming traffic information. This is usually wrong because the reverse proxy receives the request on an internal URL. Simply hard-code the value to be the desired LB URL instead:
[Nginx configuration line]
The default configuration determines the Base URL based on incoming traffic information. This is usually wrong because the reverse proxy receives the request on an internal URL. Simply hard-code the value to be the desired LB URL instead:
[Nginx configuration line]
##Comment out## ##proxy_set_header X-JFrog-Override-Base-Url $http_x_forwarded_proto://$host:$server_port; ## "$host" is usually the reverse proxy host, not the Geo-LB ## proxy_set_header X-JFrog-Override-Base-Url https://load-balancer.com;That's it, after setting the header you're all set!