forked from n4bb12/verdaccio-github-oauth-ui
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathverdaccio.yaml
62 lines (50 loc) · 1.55 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
#
# Look here for more config file examples:
# https://github.com/verdaccio/verdaccio/tree/master/conf
#
# path to a directory with all packages
storage: ./storage
# path to a directory with plugins to include
plugins: ./plugins
web:
# WebUI is enabled as default, if you want disable it, just uncomment this line
title: Verdaccio
# To use `npm audit` uncomment the following section
middlewares:
audit:
enabled: true
gitlab-oauth:
enabled: true
auth:
gitlab-oauth:
group: GITLAB_GROUP # required
client-id: GITLAB_CLIENT_ID # required
client-secret: GITLAB_CLIENT_SECRET # required
gitlab-host: GITLAB_HOST # optional, set this if you are using self hosted gitlab
# a list of other known repositories we can talk to
uplinks:
npmjs:
url: https://registry.npmjs.org/
packages:
"@*/*":
# scoped packages
access: $authenticated
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: $authenticated
# allow all known users to publish packages
# (anyone can register by default, remember?)
publish: $authenticated
# if package is not available locally, proxy requests to 'npmjs' registry
proxy: npmjs
# log settings
logs:
- { type: stdout, format: pretty, level: http }
#- {type: file, path: verdaccio.log, level: info}
url_prefix: http://localhost:4873