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/
|
|
|
|
|
2014-03-07 22:49:59 -05:00
|
|
|
# amount of time to wait for repository to respond
|
2013-12-07 17:37:27 -05:00
|
|
|
# before giving up and use the local cached copy
|
2014-03-07 22:49:59 -05:00
|
|
|
#timeout: 30s
|
2013-12-04 14:39:29 -05:00
|
|
|
|
2014-03-07 22:49:59 -05:00
|
|
|
# maximum time in which data is considered up to date
|
2013-10-22 03:34:07 -05:00
|
|
|
#
|
|
|
|
# default is 2 minutes, so server won't request the same data from
|
|
|
|
# uplink if a similar request was made less than 2 minutes ago
|
2014-03-07 22:49:59 -05:00
|
|
|
#maxage: 2m
|
2013-10-22 03:34:07 -05:00
|
|
|
|
2014-03-13 13:32:44 -05:00
|
|
|
# if two subsequent requests fail, no further requests will be sent to
|
|
|
|
# this uplink for five minutes
|
|
|
|
#max_fails: 2
|
|
|
|
#fail_timeout: 5m
|
|
|
|
|
|
|
|
# timeouts are defined in the same way as nginx, see:
|
|
|
|
# http://wiki.nginx.org/ConfigNotation
|
|
|
|
|
2013-06-13 09:21:14 -05:00
|
|
|
packages:
|
2014-01-13 13:56:36 -05:00
|
|
|
# uncomment this for packages with "local-" prefix to be available
|
2013-09-23 23:36:43 -05:00
|
|
|
# for admin only, it's a recommended way of handling private packages
|
|
|
|
#'local-*':
|
|
|
|
# allow_access: admin
|
|
|
|
# allow_publish: admin
|
2014-01-13 13:56:36 -05:00
|
|
|
# # you can override storage directory for a group of packages this way:
|
|
|
|
# storage: 'local_storage'
|
2013-09-23 23:36:43 -05:00
|
|
|
|
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
|
2013-12-28 19:54:46 -05:00
|
|
|
proxy: npmjs
|
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}
|
2013-11-24 12:07:54 -05:00
|
|
|
|
|
|
|
# you can specify proxy used with all requests in wget-like manner here
|
|
|
|
# (or set up ENV variables with the same name)
|
|
|
|
#http_proxy: http://something.local/
|
|
|
|
#https_proxy: https://something.local/
|
|
|
|
#no_proxy: localhost,127.0.0.1
|
|
|
|
|
2014-01-18 14:04:12 -05:00
|
|
|
# maximum size of uploaded json document
|
|
|
|
# increase it if you have "request entity too large" errors
|
|
|
|
#max_body_size: 1mb
|
|
|
|
|