Skip to content

Commit

Permalink
Add script entry to run htpasswd
Browse files Browse the repository at this point in the history
  • Loading branch information
SpudNyk committed Jan 24, 2020
1 parent 4a8c658 commit 6120b4c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
{
"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",
"bin": {
"verdaccio-windows": "service.js",
"verdaccio-runner": "runner.js"
},
"scripts": {
"htpasswd": "htpasswd"
},
"dependencies": {
"htpasswd": "^2.4.0",
"node-windows": "^0.1.14",
Expand Down

0 comments on commit 6120b4c

Please sign in to comment.