Created
October 6, 2015 09:27
-
-
Save voduytuan/915cc89fb51e0968cefb to your computer and use it in GitHub Desktop.
Sample configuration for cesanta/docker_auth image
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server: | |
addr: ":5001" | |
certificate: "/certs/domain.crt" | |
key: "/certs/domain.key" | |
token: | |
issuer: "Auth Service" # Must match issuer in the Registry config. | |
expiration: 900 | |
users: | |
# Password is specified as a BCrypt hash. Use htpasswd -B to generate. | |
"builder": | |
password: "$2y$05$HKE3/j6e5yMvlgp8i6OGYOCfhB1GPZKB8VQTmd4sbKLmzLLrsmNva" | |
"voduytuan": | |
password: "$2y$05$LPpgYeUfKrIJECU0KLMJauIzfOM68QE5ScL0MXGMAAlTi5B2IFHV." | |
acl: | |
# Admin has full access to everything. | |
- match: {account: "voduytuan"} | |
actions: ["*"] | |
- match: {account: "builder"} | |
actions: ["*"] | |
# Access is denied by default. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment