Create and populate htpasswd file if missing
If htpasswd authentication option is configured but the htpasswd file is missing, populate it with a default user and automatically generated password. The password will be printed to stdout. Signed-off-by: Liron Levin <liron@twistlock.com>
This commit is contained in:
parent
7484e51bf6
commit
c785740af7
5 changed files with 96 additions and 5 deletions
|
@ -11,6 +11,10 @@ http:
|
|||
addr: :5000
|
||||
headers:
|
||||
X-Content-Type-Options: [nosniff]
|
||||
auth:
|
||||
htpasswd:
|
||||
realm: basic-realm
|
||||
path: /etc/registry
|
||||
health:
|
||||
storagedriver:
|
||||
enabled: true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue