docker-registry: Add basic auth support
This commit is contained in:
parent
c2107bb294
commit
951711bf07
2 changed files with 16 additions and 0 deletions
|
@ -7,6 +7,12 @@ storage:
|
|||
layerinfo: inmemory
|
||||
filesystem:
|
||||
rootdirectory: /srv/registry
|
||||
{% if htpasswd is defined %}
|
||||
auth:
|
||||
htpasswd:
|
||||
realm: Authentication Required
|
||||
path: /etc/docker-distribution/registry/htpasswd
|
||||
{% endif %}
|
||||
http:
|
||||
addr: :5000
|
||||
{% if docker_distribution_secret is defined %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue