restore
restore copied to clipboard
Simple reStore configurable bin script
Hope this helps someone !
$ npm install -g restore
$ reStore -h
usage: reStore [-h] [-v] [-c CONF] [-e]
NodeJS remoteStorage server / 0.3.0
Optional arguments:
-h, --help Show this help message and exit.
-v, --version Show program's version number and exit.
-c CONF, --conf CONF Path to configuration
-e, --exampleConf Print configuration example
$ reStore -e
{
"allow_signup": true,
"storage_path": "/usr/share/reStore",
"cache_views": true,
"http": {
"host": "127.0.0.1",
"port": 8000
},
"https": {
"enable": false,
"force": false,
"port": 4443,
"cert": "/etc/letsencrypt/live/example.com/cert.pem",
"key": "/etc/letsencrypt/live/example.com/privkey.pem"
},
"baseURL": ""
}
$ reStore -e > reStore.conf.json
$ # edit as you need
$ reStore -c reStore.conf.json
[INFO] Starting remoteStorage: http://127.0.0.1:8000
This is really cool! Worked like a charm, when I just tried it out.
I'm glad you like it :)