| 12345678910111213141516171819202122232425 |
- version: 0.1
- log:
- fields:
- service: registry
- storage:
- delete:
- enabled: true
- cache:
- blobdescriptor: inmemory
- filesystem:
- rootdirectory: /var/lib/registry
- http:
- addr: :5000
- headers:
- X-Content-Type-Options: [nosniff]
- Access-Control-Allow-Origin: ['https://hub.algometic.com'] # 改成自己的IP,不建议使用localhost代替
- Access-Control-Allow-Methods: ['HEAD', 'GET', 'OPTIONS', 'DELETE']
- Access-Control-Allow-Headers: ['Authorization', 'Accept']
- Access-Control-Max-Age: [1728000]
- Access-Control-Allow-Credentials: [true]
- Access-Control-Expose-Headers: ['Docker-Content-Digest']
- auth:
- htpasswd:
- realm: basic-realm
- path: /var/docker-registry/registry-config/htpasswd # 密码文件放置
|