-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathauth_config_example.yml
More file actions
30 lines (26 loc) · 915 Bytes
/
auth_config_example.yml
File metadata and controls
30 lines (26 loc) · 915 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# NOTE: this is an example config, meant to be copied to ./auth_config.yml and updated.
# Reference: https://github.com/cesanta/docker_auth/blob/main/examples/reference.yml
server:
addr: ':5001'
certificate: '/etc/letsencrypt/live/docker.cdot.systems/fullchain.pem'
key: '/etc/letsencrypt/live/docker.cdot.systems/privkey.pem'
token:
issuer: 'Docker auth issuer'
expiration: 900
users:
# Password is specified as a BCrypt hash. Use htpasswd to generate.
'admin':
password: '' # Need generate a password
'telescope-ci':
password: '' # Need generate a password
'': {}
acl:
- match: { account: 'admin' }
actions: ['*']
comment: 'Admin has full access to everything.'
- match: { account: 'telescope-ci' }
actions: ['push', 'pull']
comment: 'Telescope CI has push and pull access'
- match: { account: '' }
actions: ['pull']
comment: 'Any user has pull access'