2013-06-13 09:21:14 -05:00
|
|
|
# path to a directory with all packages
|
|
|
|
storage: ./storage
|
|
|
|
|
2013-09-23 23:27:47 -05:00
|
|
|
# a list of users
|
2013-06-13 09:21:14 -05:00
|
|
|
users:
|
|
|
|
admin:
|
|
|
|
# crypto.createHash('sha1').update(pass).digest('hex')
|
|
|
|
password: __PASSWORD__
|
|
|
|
|
2013-09-23 23:27:47 -05:00
|
|
|
# a list of other known repositories we can talk to
|
2013-06-13 09:21:14 -05:00
|
|
|
uplinks:
|
|
|
|
npmjs:
|
|
|
|
url: https://registry.npmjs.org/
|
|
|
|
|
|
|
|
packages:
|
2013-09-23 23:36:43 -05:00
|
|
|
# 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
|
|
|
|
|
2013-06-14 04:27:08 -05:00
|
|
|
'*':
|
2013-09-23 23:27:47 -05:00
|
|
|
# allow all users to read packages ('all' is a keyword)
|
2013-10-11 00:32:59 -05:00
|
|
|
# this includes non-authenticated users
|
2013-09-23 23:27:47 -05:00
|
|
|
allow_access: all
|
2013-06-13 09:21:14 -05:00
|
|
|
|
2013-09-23 23:27:47 -05:00
|
|
|
# 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
|
2013-09-23 23:36:43 -05:00
|
|
|
|
|
|
|
#####################################################################
|
|
|
|
# Advanced settings
|
|
|
|
#####################################################################
|
|
|
|
|
|
|
|
# if you use nginx with custom path, use this to override links
|
|
|
|
#url_prefix: https://dev.company.local/sinopia/
|
|
|
|
|
2013-09-23 23:40:46 -05:00
|
|
|
# you can specify listen address (or simply a port)
|
|
|
|
#listen: localhost:4873
|
|
|
|
|
2013-10-11 00:32:59 -05:00
|
|
|
# type: file | stdout | stderr
|
|
|
|
# level: trace | debug | info | http (default) | warn | error | fatal
|
|
|
|
#
|
|
|
|
# parameters for file: name is filename
|
|
|
|
# {type: 'file', path: 'sinopia.log', level: 'debug'},
|
|
|
|
#
|
|
|
|
# parameters for stdout and stderr: format: json | pretty
|
|
|
|
# {type: 'stdout', format: 'pretty', level: 'debug'},
|
2013-10-12 09:37:47 -05:00
|
|
|
logs:
|
2013-10-11 00:32:59 -05:00
|
|
|
- {type: stdout, format: pretty, level: http}
|
|
|
|
#- {type: file, path: sinopia.log, level: info}
|