To resolve this issue, we need to modify the following lines in the Nginx Artifactory configuration file.
From
From
listen 80; listen 443; proxy_set_header X-JFrog-Override-Base-Url $http_x_forwarded_proto://$host:$server_port;To
listen 8080; listen 8443; proxy_set_header X-JFrog-Override-Base-Url $http_x_forwarded_proto://$host;After making this adjustment:
- Restart the Nginx pod, if the change was made on the ConfigMap.
- Redeploy Artifactory, if the change was made directly on the values.yaml’s “artifactoryConf” block.
NAME READY STATUS RESTARTS AGE artifactory-0 7/7 Running 1 (5m45s ago) 9m14s artifactory-artifactory-nginx-6c4499c6cc-sx9cx 1/1 Running 0 10s Defaulted container "nginx" out of: nginx, setup (init) Using deprecated password for user _internal. 2024-03-25 23:57:07 [169 entrypoint-nginx.sh] Preparing to run Nginx in Docker 2024-03-25 23:57:07 [14 entrypoint-nginx.sh] Dockerfile for this image can found inside the container. 2024-03-25 23:57:07 [15 entrypoint-nginx.sh] To view the Dockerfile: 'cat /docker/nginx-artifactory-pro/Dockerfile.nginx'. 2024-03-25 23:57:07 [19 entrypoint-nginx.sh] Setting up directories if missing 2024-03-25 23:57:07 [160 entrypoint-nginx.sh] Generating ssl example.key and example.crt 2024-03-25 23:57:07 [83 entrypoint-nginx.sh] Artifactory configuration already in /var/opt/jfrog/nginx/conf.d/artifactory.conf 2024-03-25 23:57:07 [177 entrypoint-nginx.sh] Adding logrotate configuration 2024-03-25 23:57:07 [92 entrypoint-nginx.sh] Adding logrotate to crontab 2024-03-25 23:57:07 [187 entrypoint-nginx.sh] Starting updateConf.sh in the background Using deprecated password for user _internal. 2024-03-25 23:57:07 [192 entrypoint-nginx.sh] Starting nginx daemon...