From 6d7578f423643c263343500f6c6ac3e09e0d4bb6 Mon Sep 17 00:00:00 2001 From: Sergey Roytman Date: Thu, 28 Dec 2023 17:38:42 +0200 Subject: [PATCH] verdaccio auth --- verdaccio/config.yaml | 10 ++++++++-- verdaccio/htpasswd | 1 + 2 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 verdaccio/htpasswd diff --git a/verdaccio/config.yaml b/verdaccio/config.yaml index 7264ed23..b3054553 100644 --- a/verdaccio/config.yaml +++ b/verdaccio/config.yaml @@ -4,10 +4,16 @@ uplinks: url: https://registry.npmjs.org/ packages: '@*/*': - access: $all - publish: $all + access: $authenticated + publish: $authenticated proxy: npmjs '**': proxy: npmjs +auth: + htpasswd: + file: /verdaccio/htpasswd + # Maximum amount of users allowed to register, defaults to "+inf". + # You can set this to -1 to disable registration. + max_users: -1 log: { type: stdout, format: pretty, level: http } max_body_size: 500mb diff --git a/verdaccio/htpasswd b/verdaccio/htpasswd new file mode 100644 index 00000000..0c6eb099 --- /dev/null +++ b/verdaccio/htpasswd @@ -0,0 +1 @@ +user:{SHA}W6ph5Mm5Pz8GgiULbPgzG37mj9g=