mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-11-13 03:35:52 +01:00
46 lines
1.2 KiB
YAML
46 lines
1.2 KiB
YAML
# path to a directory with all packages
|
|
storage: ./storage
|
|
|
|
# a list of users
|
|
users:
|
|
admin:
|
|
# crypto.createHash('sha1').update(pass).digest('hex')
|
|
password: __PASSWORD__
|
|
|
|
# a list of other known repositories we can talk to
|
|
uplinks:
|
|
npmjs:
|
|
url: https://registry.npmjs.org/
|
|
|
|
packages:
|
|
# uncomment this for packages with "local-" prefix to be available
|
|
# for admin only, it's a recommended way of handling private packages
|
|
#'local-*':
|
|
# allow_access: admin
|
|
# allow_publish: admin
|
|
|
|
'*':
|
|
# allow all users to read packages ('all' is a keyword)
|
|
# this includes non-authenticated (anonymous) users
|
|
allow_access: all
|
|
|
|
# allow 'admin' to publish packages
|
|
allow_publish: admin
|
|
|
|
# if package is not available locally, proxy requests to 'npmjs' registry
|
|
proxy_access: npmjs
|
|
|
|
# when package is published locally, also push it to remote registry
|
|
#proxy_publish: none
|
|
|
|
#####################################################################
|
|
# Advanced settings
|
|
#####################################################################
|
|
|
|
# if you use nginx with custom path, use this to override links
|
|
#url_prefix: https://dev.company.local/sinopia/
|
|
|
|
# you can specify listen address (or simply a port)
|
|
#listen: localhost:4873
|
|
|