You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

41 lines
965 B

##
## sinopia.yaml -- Sinopia Server Configuration
##
listen: 127.0.0.1:4873
url_prefix: https://example.com/sinopia/
max_body_size: 4mb
storage: @l_prefix@/var/sinopia/pkg
auth:
htpasswd:
file: @l_prefix@/var/sinopia/etc/htpasswd
logs:
- type: file
path: @l_prefix@/var/sinopia/log/sinopia.log
level: info
uplinks:
npmjs:
url: https://registry.npmjs.org/
timeout: 30s
maxage: 2m
max_fails: 2
fail_timeout: 5m
packages:
'@*/*':
allow_access: $all
allow_publish: $authenticated
'*':
allow_access: $all
allow_publish: $authenticated
proxy: npmjs
#http_proxy: http://proxy.example.com:3128/
#https_proxy: https://proxy.example.com:3128/
#no_proxy: example.com,localhost,127.0.0.1