-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathconfig.yaml
41 lines (32 loc) · 863 Bytes
/
config.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
# Storage for all packages
storage: ./storage
listen:
- 0.0.0.0:4873
logs:
- {type: stdout, format: pretty, level: info}
auth:
htpasswd:
file: ./htpasswd
# A list of other known repositories we can talk to
uplinks:
npmjs:
url: https://registry.npmjs.org/
timeout: 10s
maxage: 10m
packages:
'@*/*':
# scoped packages
access: $all
publish: $authenticated
proxy: npmjs
'*':
# allow all users (including non-authenticated users) to read and
# publish all packages
#
# you can specify usernames/groupnames (depending on your auth plugin)
# and three keywords: "$all", "$anonymous", "$authenticated"
access: $all
# Allow authenticated users to publish packages
publish: $authenticated
# if package is not available locally, proxy requests to 'npmjs' registry
proxy: npmjs