-
Notifications
You must be signed in to change notification settings - Fork 45
/
verdaccio.yaml
68 lines (55 loc) · 1.48 KB
/
verdaccio.yaml
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#
# Look here for more config file examples:
# https://github.com/verdaccio/verdaccio/tree/master/conf
#
# url_prefix: /verdaccio/
storage: ./storage
plugins: ./plugins
log:
type: stdout
format: pretty
level: info
middlewares:
github-oauth-ui:
enabled: true
auth:
github-oauth-ui:
client-id: GITHUB_CLIENT_ID
client-secret: GITHUB_CLIENT_SECRET
token: GITHUB_TOKEN
htpasswd:
file: ./htpasswd
algorithm: bcrypt
security:
api:
jwt:
sign:
expiresIn: 90d
web:
sign:
expiresIn: 7d
packages:
"**":
access: github/org/n4bb12-oauth-testing
publish: github/org/n4bb12-oauth-testing
package1:
# Limit access to signed-in users.
# This works in tandem with other plugins that also add the `$authenticated` group, such as `htpasswd`.
# Note that every GitHub user can sign in, so this is not a restrictive group.
# If you want to limit access, use one of the other
access: $authenticated
package2:
# Limit access to users:
access: github/user/n4bb12
package3:
# Limit actions to user repository collaborators:
access: github/user/n4bb12/repo/dotfiles
package4:
# Limit access to organization members:
access: github/org/n4bb12-oauth-testing
package5:
# Limit actions to team members:
access: github/org/n4bb12-oauth-testing/team/test-team
package6:
# Limit actions to organization repository collaborators:
access: github/org/n4bb12-oauth-testing/repo/test-repo