0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-12-30 22:34:10 -05:00

add docs about run behind proxy

- Add docs about run behind proxy with different domain and port
- Add server-side configure document link in README.md
This commit is contained in:
Meeeeow 2017-04-19 18:21:47 +08:00
parent 640240e5c2
commit ce65cfff23
2 changed files with 12 additions and 1 deletions

View file

@ -96,6 +96,8 @@ The original Sinopia puppet module [is available at puppet forge](http://forge.p
When you start a server, it auto-creates a config file.
### See also: [server-side configure document](SERVER.md)
## Adding a new user
```bash

View file

@ -16,11 +16,20 @@ The 'cd ~' command send you to the home directory of the verdaccio user. Make su
## Listening on all addresses
If you want to listen to every external address set the listen directive in the config to:
```
```yaml
# you can specify listen address (or simply a port)
listen: 0.0.0.0:4873
```
## Run behind proxy with different domain and port
If you run verdaccio behind proxy, you may noticed all resource file served as relaticve path, like `http://127.0.0.1:4873/-/static`, you can resolve this by set `url_prefix`
```yaml
url_prefix: 'https://your-domain:8888'
# or
url_prefix: 'https://your-domain:8888/your-path'
```
> Nginx or Apache configure? Please check out Wiki ;-)
## Keeping verdaccio running forever
We can use the node package called 'forever' to keep verdaccio running all the time.
https://github.com/nodejitsu/forever