2019-02-24 23:20:25 +01:00
|
|
|
storage: ./storage_default_storage
|
2020-03-03 23:59:19 +01:00
|
|
|
plugins: ./plugins
|
|
|
|
|
|
|
|
auth:
|
|
|
|
htpasswd:
|
|
|
|
file: ./htpasswd
|
|
|
|
|
2019-02-24 23:20:25 +01:00
|
|
|
packages:
|
2019-08-10 13:38:06 +02:00
|
|
|
'@public-anyone-can-publish/*':
|
|
|
|
access: $anonymous jota_unpublish
|
|
|
|
publish: $anonymous jota_unpublish
|
|
|
|
unpublish: $anonymous jota_unpublish
|
2020-06-19 22:54:03 +02:00
|
|
|
'@scope/deprecate':
|
|
|
|
access: $all
|
|
|
|
publish:
|
|
|
|
- jota_deprecate
|
|
|
|
- only_publish
|
|
|
|
unpublish:
|
|
|
|
- jota_deprecate
|
|
|
|
- only_unpublish
|
2019-08-10 13:38:06 +02:00
|
|
|
'@scope/starPackage':
|
|
|
|
access: $all
|
|
|
|
publish: jota_star
|
|
|
|
unpublish: jota_star
|
|
|
|
'@only-one-can-publish/*':
|
|
|
|
access: jota_unpublish
|
|
|
|
publish: jota_unpublish
|
|
|
|
unpublish: jota_unpublish
|
|
|
|
'@jquery/*':
|
2019-02-24 23:20:25 +01:00
|
|
|
access: $all
|
|
|
|
publish: $all
|
|
|
|
proxy: npmjs
|
2019-08-10 13:38:06 +02:00
|
|
|
'@scope/*':
|
|
|
|
access: test
|
|
|
|
publish: dsadsa
|
|
|
|
proxy: npmjs
|
|
|
|
'@*/*':
|
2019-04-28 09:34:59 +02:00
|
|
|
access: $all
|
|
|
|
publish: $all
|
2019-08-10 13:38:06 +02:00
|
|
|
unpublish: $authenticated
|
2019-04-28 09:34:59 +02:00
|
|
|
proxy: npmjs
|
2019-02-24 23:20:25 +01:00
|
|
|
'auth-package':
|
|
|
|
access: $authenticated
|
|
|
|
publish: $authenticated
|
2019-08-10 13:38:06 +02:00
|
|
|
'only-you-can-publish':
|
|
|
|
access: $authenticated
|
|
|
|
publish: you
|
|
|
|
unpublish: you
|
2019-02-25 08:33:01 +01:00
|
|
|
'non-unpublish':
|
|
|
|
access: $authenticated
|
2019-08-10 13:38:06 +02:00
|
|
|
publish: jota_unpublish_fail
|
|
|
|
# There is some conditions to keep on mind here
|
|
|
|
# - If unpublish is empty, fallback with the publish value
|
|
|
|
# - If the user has permissions to publish and this empty it will be allowed to unpublish
|
|
|
|
# - If we want to forbid anyone to unpublish, just write here any unexisting user
|
|
|
|
unpublish: some_unexisting_user_defined_here_might_be_a_hash
|
|
|
|
'only-unpublish':
|
|
|
|
access: $authenticated
|
|
|
|
# comment out is intended, we want to test if publish prop is not defined
|
|
|
|
# publish: jota_unpublish_fail
|
|
|
|
#
|
2019-04-28 09:34:59 +02:00
|
|
|
unpublish:
|
2019-02-25 08:33:01 +01:00
|
|
|
'super-admin-can-unpublish':
|
|
|
|
access: $authenticated
|
|
|
|
publish: super_admin
|
|
|
|
unpublish: super_admin
|
|
|
|
'all-can-unpublish':
|
|
|
|
access: $authenticated
|
|
|
|
publish: $all
|
|
|
|
unpublish: $all
|
2019-02-24 23:20:25 +01:00
|
|
|
'forbidden-place':
|
|
|
|
access: nobody
|
|
|
|
publish: $all
|
|
|
|
'vue':
|
|
|
|
access: $authenticated
|
|
|
|
publish: $authenticated
|
|
|
|
proxy: npmjs
|
|
|
|
'jquery':
|
|
|
|
access: $all
|
|
|
|
publish: $all
|
|
|
|
proxy: npmjs
|
|
|
|
'*':
|
|
|
|
access: $all
|
|
|
|
publish: $all
|
|
|
|
unpublish: xxx
|
|
|
|
proxy: npmjs
|
|
|
|
logs:
|
2020-03-03 23:59:19 +01:00
|
|
|
- { type: stdout, format: pretty, level: error }
|