1 Usage: strapp [OPTION]...
2 Route https connections from a hardware port to a remote host, and initiate
3 peer-to-peer connection with clients. A 'route' is established from the first
4 directory specified in the requested URL.
7 -c, --config=path[:path]...
9 Configuration files to use. Each file in the sequence
10 can override any of the previous file's settings.
11 (/etc/strapp.conf:~/.strapp/strapp.conf:./strapp.conf)
12 - config settings are overridden by command line opts
15 -j, --client-js=path Path to the client Strapp code (./client.js)
16 -J, --host-js=path Path to the host Strapp code (./host.js)
17 -T, --no-tls=bool Don't use HTTPS and WSS protocols (false)
18 - makes 'ca-cert' and 'ca-key' unnecessary
20 -C, --ca-cert=path Accessible location of the CA Cert (../certs/cert.pem)
21 -K, --ca-key=path Accessible location of the CA Key (../certs/key.pem)
22 -p, --port=number The local port to bind HTTPS listener to (2443)
23 -i, --index=path File serviced at the root domain (./index.html)
26 -b, --bind=[string:path[,string:path]]...
28 Bindings of routes to paths. Any route bound to a
29 path will, instead of distributing the strapp client,
30 service the file at that path. If the file is a
31 directory, it will be mounted at that route. Multiple
32 bindings may be established by separating the
33 key:value pairs with ',' commas. (www:./www)
34 e.g. Service a typical frontpage
35 -i ./html/index.html -b js:./js,html:./html,css:./css
36 e.g. Route-based http hosting
37 -b user1:/home/user1/www,user2:/home/user2/www
39 -e, --electron=string Specify a route name for the local electron render
40 window which will be launched on execution (nil)
41 - enables optional electron dependency
43 -d, --dedicated=string Route all incoming connections to this route (nil)
44 - can be used in conjunction with '-e' for single-user
45 e.g. Create a dedicated electron listener
46 $ strapp -e default -d default
47 - All routes point to 'default' which is bound to
48 the local electron window. No other hosts may
49 be established, so no remote hosts may exist
52 --legacy-socket=bool Use Socket.io compatibility layer to enable
53 long-polling and AJAX fallbacks (false)
54 - enables optional socket.io dependency