Skip to content

Instantly share code, notes, and snippets.

@hasantayyar
Created April 26, 2018 09:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hasantayyar/c3e77dcd05d5eb93336af1754107e791 to your computer and use it in GitHub Desktop.
Save hasantayyar/c3e77dcd05d5eb93336af1754107e791 to your computer and use it in GitHub Desktop.
verdaccio config
# Look here for more config file examples:
# https://github.com/verdaccio/verdaccio/tree/master/conf
#
# path to a directory with all packages
storage: ./storage
auth:
htpasswd:
file: ./htpasswd
max_users: 1
url_prefix: https://xxx.com/
uplinks:
npmjs:
url: https://registry.npmjs.org/
yarnjs:
url: https://registry.yarnpkg.com
packages:
'@*/*':
# scoped packages
access: $all
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: $all
# allow all known users to publish packages
# (anyone can register by default, remember?)
publish: $authenticated
proxy: npmjs
# log settings
logs:
- {type: stdout, format: pretty, level: http}
#- {type: file, path: verdaccio.log, level: info}
listen:
- 0.0.0.0:4873 # listen on all addresses (INADDR_ANY)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment