Skip to content

Commit 509a03a

Browse files
tsl0922rojer
authored andcommitted
Add a non-tls example config (#209)
1 parent 7c0b9aa commit 509a03a

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

examples/non_tls.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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.

0 commit comments

Comments
 (0)