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=