mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-30 22:34:10 -05:00
Merge pull request #160 from Meeeeow/docs_behind_proxy
add docs about run behind proxy
This commit is contained in:
commit
d11d9ea5a4
2 changed files with 12 additions and 1 deletions
|
@ -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
|
||||
|
|
11
SERVER.md
11
SERVER.md
|
@ -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 reverse proxy with different domain and port
|
||||
If you run verdaccio behind reverse 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
|
||||
|
|
Loading…
Reference in a new issue