# # This is the default config file. It allows all users to do anything, # so don't use it on production systems. # # Look here for more config file examples: # https://github.com/verdaccio/verdaccio/tree/master/conf #
#端口号,地址要这样设置外面才好访问 listen: 0.0.0.0:4873 auth: htpasswd: file: ./htpasswd # Maximum amount of users allowed to register, defaults to "+inf". # You can set this to -1 to disable registration. #max_users: 1000
'**': # 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
# if package is not available locally, proxy requests to 'npmjs' registry proxy: npmjs