File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change
1
+ # A non-tls example. See reference.yml for explanation of all options.
2
+ #
3
+ # auth:
4
+ # token:
5
+ # realm: "http://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 -nB USERNAME` to generate.
21
+ " admin " :
22
+ password : " $2y$05$LO.vzwpWC5LZGqThvEfznu8qhb5SGqvBSWY1J3yZ4AxtMRZ3kN5jC" # badmin
23
+ " test " :
24
+ password : " $2y$05$WuwBasGDAgr.QCbGIjKJaep4dhxeai9gNZdmBnQXqpKly57oNutya" # 123
25
+
26
+ acl :
27
+ - match : {account: "admin"}
28
+ actions : ["*"]
29
+ comment : " Admin has full access to everything."
30
+ - match : {account: "user"}
31
+ actions : ["pull"]
32
+ comment : " User \" user\" can pull stuff."
33
+ # Access is denied by default.
You can’t perform that action at this time.
0 commit comments