mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-16 21:56:25 -05:00
Remove references to sinopia in Documentation and configuration
This commit is contained in:
parent
8083df1361
commit
3b95710f27
3 changed files with 23 additions and 23 deletions
30
SERVER.md
30
SERVER.md
|
@ -1,18 +1,18 @@
|
|||
This is mostly basic linux server configuration stuff but I felt it important to document and share the steps I took to get sinopia running permanently on my server. You will need root (or sudo) permissions for the following.
|
||||
This is mostly basic linux server configuration stuff but I felt it important to document and share the steps I took to get verdaccio running permanently on my server. You will need root (or sudo) permissions for the following.
|
||||
|
||||
## Running as a separate user
|
||||
First create the sinopia user:
|
||||
First create the verdaccio user:
|
||||
```bash
|
||||
$ sudo adduser --disabled-login --gecos 'Sinopia NPM mirror' sinopia
|
||||
$ sudo adduser --disabled-login --gecos 'Verdaccio NPM mirror' verdaccio
|
||||
```
|
||||
|
||||
You create a shell as the sinopia user using the following command:
|
||||
You create a shell as the verdaccio user using the following command:
|
||||
```bash
|
||||
$ sudo su sinopia
|
||||
$ sudo su verdaccio
|
||||
$ cd ~
|
||||
```
|
||||
|
||||
The 'cd ~' command send you to the home directory of the sinopia user. Make sure you run sinopia at least once to generate the config file. Edit it according to your needs.
|
||||
The 'cd ~' command send you to the home directory of the verdaccio user. Make sure you run verdaccio at least once to generate the config file. Edit it according to your needs.
|
||||
|
||||
## Listening on all addresses
|
||||
If you want to listen to every external address set the listen directive in the config to:
|
||||
|
@ -21,8 +21,8 @@ If you want to listen to every external address set the listen directive in the
|
|||
listen: 0.0.0.0:4873
|
||||
```
|
||||
|
||||
## Keeping sinopia running forever
|
||||
We can use the node package called 'forever' to keep sinopia running all the time.
|
||||
## Keeping verdaccio running forever
|
||||
We can use the node package called 'forever' to keep verdaccio running all the time.
|
||||
https://github.com/nodejitsu/forever
|
||||
|
||||
First install forever globally:
|
||||
|
@ -30,16 +30,16 @@ First install forever globally:
|
|||
$ sudo npm install -g forever
|
||||
```
|
||||
|
||||
Make sure you've started sinopia at least once to generate the config file and write down the created admin user. You can then use the following command to start sinopia:
|
||||
Make sure you've started verdaccio at least once to generate the config file and write down the created admin user. You can then use the following command to start verdaccio:
|
||||
```bash
|
||||
$ forever start `which sinopia`
|
||||
$ forever start `which verdaccio`
|
||||
```
|
||||
|
||||
You can check the documentation for more information on how to use forever.
|
||||
|
||||
## Surviving server restarts
|
||||
We can use crontab and forever together to restart sinopia after a server reboot.
|
||||
When you're logged in as the sinopia user do the following:
|
||||
We can use crontab and forever together to restart verdaccio after a server reboot.
|
||||
When you're logged in as the verdaccio user do the following:
|
||||
|
||||
```bash
|
||||
$ crontab -e
|
||||
|
@ -48,11 +48,11 @@ $ crontab -e
|
|||
This might ask you to choose an editor. Pick your favorite and proceed.
|
||||
Add the following entry to the file:
|
||||
```
|
||||
@reboot /usr/bin/forever start /usr/lib/node_modules/sinopia/bin/sinopia
|
||||
@reboot /usr/bin/forever start /usr/lib/node_modules/verdaccio/bin/verdaccio
|
||||
```
|
||||
|
||||
The locations may vary depending on your server setup. If you want to know where your files are you can use the 'which' command:
|
||||
```bash
|
||||
$ which forever
|
||||
$ which sinopia
|
||||
```
|
||||
$ which verdaccio
|
||||
```
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
# so don't use it on production systems.
|
||||
#
|
||||
# Look here for more config file examples:
|
||||
# https://github.com/rlidwka/sinopia/tree/master/conf
|
||||
# https://github.com/verdaccio/verdaccio/tree/master/conf
|
||||
#
|
||||
|
||||
# path to a directory with all packages
|
||||
|
@ -45,5 +45,5 @@ packages:
|
|||
# log settings
|
||||
logs:
|
||||
- {type: stdout, format: pretty, level: http}
|
||||
#- {type: file, path: sinopia.log, level: info}
|
||||
#- {type: file, path: verdaccio.log, level: info}
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@ web:
|
|||
# this has a lot of issues, e.g. no auth yet, so use at your own risk
|
||||
#enable: true
|
||||
|
||||
title: Sinopia
|
||||
title: Verdaccio
|
||||
# logo: logo.png
|
||||
# template: custom.hbs
|
||||
|
||||
|
@ -78,10 +78,10 @@ packages:
|
|||
#####################################################################
|
||||
|
||||
# if you use nginx with custom path, use this to override links
|
||||
#url_prefix: https://dev.company.local/sinopia/
|
||||
#url_prefix: https://dev.company.local/verdaccio/
|
||||
|
||||
# You can specify listen address (or simply a port).
|
||||
# If you add multiple values, sinopia will listen on all of them.
|
||||
# If you add multiple values, verdaccio will listen on all of them.
|
||||
#
|
||||
# Examples:
|
||||
#
|
||||
|
@ -91,7 +91,7 @@ packages:
|
|||
# - 0.0.0.0:4873 # listen on all addresses (INADDR_ANY)
|
||||
# - https://example.org:4873 # if you want to use https
|
||||
# - [::1]:4873 # ipv6
|
||||
# - unix:/tmp/sinopia.sock # unix socket
|
||||
# - unix:/tmp/verdaccio.sock # unix socket
|
||||
|
||||
# Configure HTTPS, it is required if you use "https" protocol above.
|
||||
#https:
|
||||
|
@ -102,13 +102,13 @@ packages:
|
|||
# level: trace | debug | info | http (default) | warn | error | fatal
|
||||
#
|
||||
# parameters for file: name is filename
|
||||
# {type: 'file', path: 'sinopia.log', level: 'debug'},
|
||||
# {type: 'file', path: 'verdaccio.log', level: 'debug'},
|
||||
#
|
||||
# parameters for stdout and stderr: format: json | pretty
|
||||
# {type: 'stdout', format: 'pretty', level: 'debug'},
|
||||
logs:
|
||||
- {type: stdout, format: pretty, level: http}
|
||||
#- {type: file, path: sinopia.log, level: info}
|
||||
#- {type: file, path: verdaccio.log, level: info}
|
||||
|
||||
# you can specify proxy used with all requests in wget-like manner here
|
||||
# (or set up ENV variables with the same name)
|
||||
|
|
Loading…
Reference in a new issue