上传镜像,删除镜像,如果限制request_method,这几项都要写上
if ( $request_method !~ ^(GET|POST|HEAD|PUT|DELETE|PATCH)$ ) {
return 403;
}
proxy header里,如果用了SSL,Proto写https,要不会一直auth error
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Host $http_host;
proxy_set_header X-Forwarded-Proto "https";
proxy_set_header X-Real-IP $remote_addr;
可以围观这里
https://github.com/docker/distribution/issues/970#issuecomment-139485550
网友评论