Created
April 26, 2018 09:42
-
-
Save hasantayyar/c3e77dcd05d5eb93336af1754107e791 to your computer and use it in GitHub Desktop.
verdaccio config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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