File tree Expand file tree Collapse file tree 2 files changed +71
-0
lines changed Expand file tree Collapse file tree 2 files changed +71
-0
lines changed Original file line number Diff line number Diff line change 1+ # A simple example. See reference.yml for explanation for explanation of all options.
2+ #
3+ # auth:
4+ # token:
5+ # realm: "https://127.0.0.1:5001/auth"
6+ # service: "Docker registry"
7+ # issuer: "Acme auth server"
8+ # rootcertbundle: "/path/to/server.pem"
9+
10+ server :
11+ addr : " :5001"
12+
13+ token :
14+ issuer : " Acme auth server" # Must match issuer in the Registry config.
15+ expiration : 900
16+ certificate : " /path/to/server.pem"
17+ key : " /path/to/server.key"
18+
19+ users :
20+ # Password is specified as a BCrypt hash. Use htpasswd -B to generate.
21+ " admin " :
22+ password : " $2y$05$LO.vzwpWC5LZGqThvEfznu8qhb5SGqvBSWY1J3yZ4AxtMRZ3kN5jC" # badmin
23+ " test " :
24+ password : " $2y$05$WuwBasGDAgr.QCbGIjKJaep4dhxeai9gNZdmBnQXqpKly57oNutya" # 123
25+
26+ acl :
27+ # Admin has full access to everything.
28+ - match : {account: "admin"}
29+ actions : ["*"]
30+ # User "user" can pull stuff.
31+ - match : {account: "user"}
32+ actions : ["pull"]
33+ # Access is denied by default.
Original file line number Diff line number Diff line change 1+ # A simple example. See reference.yml for explanation for explanation of all options.
2+ #
3+ # auth:
4+ # token:
5+ # realm: "https://127.0.0.1:5001/auth"
6+ # service: "Docker registry"
7+ # issuer: "Acme auth server"
8+ # rootcertbundle: "/path/to/server.pem"
9+
10+ server :
11+ addr : " :5001"
12+ certificate : " /path/to/server.pem"
13+ key : " /path/to/server.key"
14+
15+ token :
16+ issuer : " Acme auth server" # Must match issuer in the Registry config.
17+ expiration : 900
18+
19+ # Forward auth data to script. Username and Password provided on stdin. On Success print "OK" without newline
20+ #
21+ # Example Script
22+ # #!/bin/sh
23+ # read username
24+ # read password
25+ # echo "$username with password $password just came along" >> auth_example.log
26+ # printf "OK"
27+ #
28+ shell :
29+ command : /my/custom/auth/script
30+
31+ acl :
32+ # Admin has full access to everything.
33+ - match : {account: "admin"}
34+ actions : ["*"]
35+ # User "user" can pull stuff.
36+ - match : {account: "user"}
37+ actions : ["pull"]
38+ # Access is denied by default.
You can’t perform that action at this time.
0 commit comments