Hello.
Nexus works on server with other service like https:site.com/nexus
But when I do docker login, it works fine via http://ip, but via https it says:
Error response from daemon: login attempt to https://site.com/v2/ failed with status: 400 Bad Request
Here is my nginx conf for it:
location /nexus/ {
proxy_cache off;
proxy_pass http://localhost:8081/nexus/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto https;
}
location /v2/ {
proxy_cache off;
proxy_pass http://localhost:8083/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto https;
}