Registry V2配置

2017-03-22  本文已影响0人  那不勒斯抹茶羽衣南瓜饼

上传镜像,删除镜像,如果限制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

上一篇 下一篇

猜你喜欢

热点阅读