# by default packages are ordercer ascendant (asc|desc)
sort_packages:asc
# convert your UI to the dark side
darkMode:false
# 翻译您的注册表,api i18n尚不可用
i18n:
# list of the available translations https://github.com/verdaccio/ui/tree/master/i18n/translations
web:zh-CN
auth:
htpasswd:
file:./htpasswd# 账号密码的文件地址,初始化时不存在,可指定需要手工创建
# 默认1000,为允许用户注册的数量。defaults to "+inf"。
# 为-1时,不允许用户通过npm adduser注册。
# 但是,当为-1时,可以通过直接编写htpasswd file内容的方式添加用户
max_users:1000
# a list of other known repositories we can talk to
uplinks:
taobao:
url:https://registry.npm.taobao.org/
npmjs:
url:https://registry.npmjs.org/
packages:
'@*/*':
# scoped packages
access:$all
publish:$authenticated
unpublish:$authenticated
proxy:taobao
'**':
# 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 all known users to publish/publish packages
# (anyone can register by default, remember?)
publish:$authenticated
unpublish:$authenticated
# if package is not available locally, proxy requests to 'npmjs' registry
proxy:taobao
# You can specify HTTP/1.1 server keep alive timeout in seconds for incoming connections.
# A value of 0 makes the http server behave similarly to Node.js versions prior to 8.0.0, which did not have a keep-alive timeout.
# WORKAROUND: Through given configuration you can workaround following issue https://github.com/verdaccio/verdaccio/issues/301. Set to 0 in case 60 is not enough.