Closed tomqwu closed 8 years ago
Can you provide more details please?
What is 'Location' headers in 302 response after delete operation?
If it's last tag It's should be two 302 redirects, last one with '/' location.
@canadatom Are you using https on nginx in front of it?
@mkuchin I found out it redirect to http regardless of whether I am using http or https:
curl -XGET -v -u username https://registry.domain.com/delete/4/test .... < HTTP/1.1 302 Found < Server: nginx/1.8.0 < Date: Tue, 10 Nov 2015 16:56:34 GMT < Content-Length: 0 < Connection: keep-alive < Location: http://registry.domain.com/tags/test < Docker-Distribution-Api-Version: registry/2.0 <
I am using nginx in front of both, UI and registry, to SSL and authenticate. I am also passing: proxy_set_header X-Forwarded-Proto "https";
to both of them. Could it be possible to change the redirect to the protocol being passed by the proxy?
fixed in latest version
Upon DELETE of tag, if it's last tag of the repository then the return page is getting by 302 ERR_CONNECTION_REFUSED.