forked from LayerZero-Labs/devtools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
verdaccio.yaml
89 lines (73 loc) · 2.5 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# .-.-. .-.-. .-.-. .-.-. .-.-. .-.-. .-.-. .-.-
# / / \ \ / / \ \ / / \ \ / / \ \ / / \ \ / / \ \ / / \ \ / / \
# `-' `-`-' `-`-' `-`-' `-`-' `-`-' `-`-' `-`-'
#
# Configuration of a local NPM registry for testing
#
# .-.-. .-.-. .-.-. .-.-. .-.-. .-.-. .-.-. .-.-
# / / \ \ / / \ \ / / \ \ / / \ \ / / \ \ / / \ \ / / \ \ / / \
# `-' `-`-' `-`-' `-`-' `-`-' `-`-' `-`-' `-`-'
storage: /verdaccio/storage/data
plugins: /verdaccio/plugins
# https://verdaccio.org/docs/webui
web:
title: LayerZero.NPM
darkMode: true
showFooter: false
showSettings: false
showThemeSwitch: false
favicon: https://layerzero.network/favicon-32x32.png
primary_color: "#a77dff"
logo: https://avatars.githubusercontent.com/u/90789833?s=200&v=4
# https://verdaccio.org/docs/configuration#authentication
auth:
htpasswd:
file: /verdaccio/storage/htpasswd
algorithm: bcrypt
max_users: 1000
# https://verdaccio.org/docs/configuration#uplinks
uplinks:
npmjs:
url: https://registry.npmjs.org/
# https://verdaccio.org/docs/protect-your-dependencies/
# https://verdaccio.org/docs/configuration#packages
packages:
#
# We will not proxy the packages from this repo
#
# Since we want to proxy some of the NPM packages,
# we cannot just use a pattern like "@layerzerolabs/*"
#
# We will not proxy any *devtools* packages
"@layerzerolabs/**devtools**": &local-package-rules
access: $all
# allow all known users to publish/publish packages
#
# this does not mean that anyone can publish to NPM
# (in fact verdaccio will not publish to NPM ever),
# this just means we don't need to be authenticated to the local registry
# in order to publish packages
publish: $all
unpublish: $all
# We will not proxy any toolbox* packages
"@layerzerolabs/toolbox-**": *local-package-rules
# And we will not proxy create-lz-oapp
"create-lz-oapp": *local-package-rules
# The rest of the packages we'll proxy to the public NPM repo
"**":
<<: *local-package-rules
# if package is not available locally, proxy requests to 'npmjs' registry
proxy: npmjs
# https://verdaccio.org/docs/configuration#server
server:
keepAliveTimeout: 60
# https://verdaccio.org/docs/configuration#offline-publish
publish:
allow_offline: true
middlewares:
audit:
enabled: true
# https://verdaccio.org/docs/logger
log: { type: stdout, format: pretty, level: http }
# https://verdaccio.org/docs/configuration/#max-body-size
max_body_size: 100mb