Skip to content

Instantly share code, notes, and snippets.

@voduytuan
Created October 6, 2015 09:27
Show Gist options
  • Save voduytuan/915cc89fb51e0968cefb to your computer and use it in GitHub Desktop.
Save voduytuan/915cc89fb51e0968cefb to your computer and use it in GitHub Desktop.
Sample configuration for cesanta/docker_auth image
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