mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-11-13 03:35:52 +01:00
374a5e8e7b
This is basically the PR fl4re/sinopia#18 by @fredr
77 lines
1.3 KiB
YAML
77 lines
1.3 KiB
YAML
storage: ./test-storage2
|
|
|
|
users:
|
|
test:
|
|
password: a94a8fe5ccb19ba61c4c0873d391e987982fbbd3
|
|
authtest:
|
|
password: a94a8fe5ccb19ba61c4c0873d391e987982fbbd3
|
|
|
|
uplinks:
|
|
server1:
|
|
url: http://localhost:55551/
|
|
maxage: 0
|
|
|
|
web:
|
|
enable: true
|
|
|
|
middlewares:
|
|
../fixtures/plugins/middlewares:
|
|
message: this is a custom route
|
|
|
|
auth:
|
|
../fixtures/plugins/authenticate:
|
|
accept_user: authtest2
|
|
with_password: blahblah
|
|
|
|
../fixtures/plugins/authorize:
|
|
allow_user: authtest
|
|
to_access: test-auth-allow
|
|
|
|
logs:
|
|
- {type: stdout, format: pretty, level: trace}
|
|
|
|
packages:
|
|
'@test/*':
|
|
allow_access: all
|
|
allow_publish: all
|
|
proxy: server1
|
|
|
|
'testfwd':
|
|
allow_access: all
|
|
allow_publish: all
|
|
|
|
'testloop':
|
|
allow_access: all
|
|
allow_publish: all
|
|
proxy_access: server1
|
|
proxy_publish: server1
|
|
|
|
'testpkg*':
|
|
allow_access: test anonymous
|
|
allow_publish: test anonymous
|
|
proxy_access: server1
|
|
|
|
'readme-*':
|
|
allow_access: test anonymous
|
|
allow_publish: test anonymous
|
|
proxy_access: server1
|
|
|
|
'test-nullstorage*':
|
|
allow_access: all
|
|
allow_publish: all
|
|
|
|
'test-auth-regular':
|
|
allow_access: $authenticated
|
|
|
|
'test-auth-*':
|
|
handled_by_auth_plugin: true
|
|
|
|
'*':
|
|
allow_access: test anonymous
|
|
allow_publish: test anonymous
|
|
|
|
listen: 55552
|
|
|
|
# expose internal methods
|
|
_debug: true
|