From 1d13979a58f2d3d900094a4dc3261534a23bfe60 Mon Sep 17 00:00:00 2001 From: "Juan Picado @jotadeveloper" Date: Mon, 25 Feb 2019 07:31:35 +0100 Subject: [PATCH] doc: add improve unpublish docs --- conf/default.yaml | 8 ++++---- conf/docker.yaml | 10 ++++++++-- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/conf/default.yaml b/conf/default.yaml index e917e1545..27f802d4c 100644 --- a/conf/default.yaml +++ b/conf/default.yaml @@ -13,7 +13,8 @@ plugins: ./plugins web: title: Verdaccio - # gravatar: true + # comment out to disable gravatar support + # gravatar: false # by default packages are ordercer ascendant (asc|desc) # sort_packages: asc @@ -22,7 +23,7 @@ auth: file: ./htpasswd # Maximum amount of users allowed to register, defaults to "+inf". # You can set this to -1 to disable registration. - #max_users: 1000 + # max_users: 1000 security: api: @@ -56,10 +57,9 @@ packages: # and three keywords: "$all", "$anonymous", "$authenticated" access: $all - # allow all known users to publish packages + # allow all known users to publish/publish packages # (anyone can register by default, remember?) publish: $authenticated - unpublish: $authenticated # if package is not available locally, proxy requests to 'npmjs' registry diff --git a/conf/docker.yaml b/conf/docker.yaml index 51dedc1d8..605d28d63 100644 --- a/conf/docker.yaml +++ b/conf/docker.yaml @@ -19,13 +19,17 @@ web: # WebUI is enabled as default, if you want disable it, just uncomment this line #enable: false title: Verdaccio + # comment out to disable gravatar support + # gravatar: false + # by default packages are ordercer ascendant (asc|desc) + # sort_packages: asc auth: htpasswd: file: /verdaccio/storage/htpasswd # Maximum amount of users allowed to register, defaults to "+infinity". # You can set this to -1 to disable registration. - #max_users: 1000 + # max_users: 1000 security: api: @@ -48,6 +52,7 @@ packages: # scoped packages access: $all publish: $authenticated + unpublish: $authenticated proxy: npmjs '**': @@ -58,9 +63,10 @@ packages: # and three keywords: "$all", "$anonymous", "$authenticated" access: $all - # allow all known users to publish packages + # allow all known users to publish/publish packages # (anyone can register by default, remember?) publish: $authenticated + unpublish: $authenticated # if package is not available locally, proxy requests to 'npmjs' registry proxy: npmjs