From 6120b4c27626dfcd2012a2f7ec062b5cd86dc3ec Mon Sep 17 00:00:00 2001 From: Nick Channon Date: Fri, 24 Jan 2020 09:13:17 -0500 Subject: [PATCH] Add script entry to run htpasswd --- README.md | 5 +++++ package.json | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6d54362..6cdf20b 100644 --- a/README.md +++ b/README.md @@ -33,6 +33,11 @@ This is useful to see the verdaccio's output for any errors. When the service is created the install location will have a `daemon` sub directory. By default the service logs verdaccio standard output and error to this folder. This location can be changed using the service.js [install](#install)'s `--logs` option. **NOTE** By default verdaccio logs all http requests, so the log files can get very large. To address this use the [verdaccio configuration file](https://verdaccio.org/docs/en/configuration) to setup [logging](https://verdaccio.org/docs/en/logger). +#### Accounts + +As Verdaccio uses apache htpasswd files for its authetication by default. The [htpasswd](https://github.com/http-auth/htpasswd) script is included to ease setup. To use change directory to the install location then run `npm run htpasswd` +Use this to create a htpasswd file and manage the accounts in it. **NOTE** Ensure Verdaccio is configured to point to the htpasswd file you created. + ## Usage Use the service.js command to manage a verdaccio service. diff --git a/package.json b/package.json index a598c97..36a6090 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "verdaccio-windows", "description": "Verdaccio Windows Service", - "version": "1.0.0", + "version": "1.0.1", "main": "service.js", "license": "MIT", "repository": "https://github.com/SpudNyk/verdaccio-windows.git", @@ -9,6 +9,9 @@ "verdaccio-windows": "service.js", "verdaccio-runner": "runner.js" }, + "scripts": { + "htpasswd": "htpasswd" + }, "dependencies": { "htpasswd": "^2.4.0", "node-windows": "^0.1.14",