Tony Yip says to YSITD
location / { return 302 https://nexus.ysitd.cloud; } location ~ / { proxy_pass http://nexus/repository/docker-group/; proxy_set_header Host nexus.ysitd.cloud; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; }