This repository has been archived by the owner on Jan 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yaml
120 lines (96 loc) · 3.09 KB
/
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
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
storage: /verdaccio/storage/data
plugins: /verdaccio/plugins
listen:
- 0.0.0.0:4873
auth:
auth-gitlab:
# using https://www.npmjs.com/package/verdaccio-auth-gitlab
# Gitlab server (default: https://gitlab.com)
url: https://gitlab.example.com
# Gitlab token type (default: personal)
tokenType: personal # options: personal/oauth/job
# Use full group path (default: false)
fullGroupPath: false
# Use full project path with namespace (default: false)
fullProjectPath: false
# Any group list api options (default: null)
extendGroupOptions: null
# Any project list api options (default: null)
extendProjectOptions: null
# Check gitlab Role
role:
# Gitlab user role (default: true)
# Warning: Set to false will disable all role
# Disable user role will make it impossible to check the relevance between username and token
user: true
# Gitlab group owner role (default: false)
# Warning: Set to true will cause performance degradation
groupOwner: false
# Gitlab group member role (default: false)
# Warning: Set to true will cause performance degradation
groupMember: false
# Gitlab group minimal access level (default: [])
# Warning: Set to non-empty array will cause performance degradation
# Supported by gitlab 11.2
groupMinAccessLevel: [] # access level array e.g. [30, 40]
# Gitlab project owner role (default: false)
# Warning: Set to true will cause performance degradation
projectOwner: false
# Gitlab project member role (default: false)
# Warning: Set to true will cause performance degradation
projectMember: false
# Gitlab project minimal access level (default: [])
# Warning: Set to non-empty array will cause performance degradation
# Supported by gitlab 11.2
projectMinAccessLevel: [] # access level array e.g. [30, 40]
# Cache gitlab user
cache:
# Max cache count (default: 1000)
# Warning: Set to 0 will cause performance degradation
maxCount: 1000
# Max cache second (default: 300)
# Warning: Set to 0 will cause performance degradation
maxSecond: 300
# Limit the scope of the all function
page:
# Number of items to list per page (default: 100)
# Warning: The maximum value is 100
perPage: 100
# Max page number (default: 0)
# Warning: Set to 0 will get all data
maxPages: 0
uplinks:
npmjs:
url: https://registry.npmjs.org/
yarn:
url: https://registry.yarnpkg.com/
packages:
"@**":
# scoped packages
access: $all
publish: $gitlab:user
"**":
access: $all
publish: $gitlab:user
proxy: npmjs
logs:
- { type: stdout, format: pretty, level: info }
#- {type: file, path: verdaccio.log, level: info}
i18n:
web: en-US
web:
enable: true
title: npm registry
sort_packages: asc | desc
darkMode: false
rateLimit:
windowMs: 50000
max: 1000
pkgManagers:
- npm
- yarn
- pnpm
login: true
html_cache: true
showInfo: true
showSettings: true