Skip to content

Simple reStore configurable bin script#40

Open
lesion wants to merge 6 commits into
jcoglan:masterfrom
lesion:bin
Open

Simple reStore configurable bin script#40
lesion wants to merge 6 commits into
jcoglan:masterfrom
lesion:bin

Conversation

@lesion
Copy link
Copy Markdown

@lesion lesion commented Sep 4, 2016

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

@raucao
Copy link
Copy Markdown

raucao commented Sep 7, 2016

This is really cool! Worked like a charm, when I just tried it out.

@lesion
Copy link
Copy Markdown
Author

lesion commented Sep 8, 2016

I'm glad you like it :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants