README.md
1# REST/Websocket HTTP server.
2
3SSL (TLS 1.2) provided by fork of BearSSL library https://github.com/Softmotions/BearSSL
4
5## jbs server
6
7```
8Usage:
9
10 ./jbs [options]
11
12 -v, --version Print program version.
13 -f, --file=<> Database file path. Default: ejdb2.db
14 -p, --port=NUM HTTP server port numer. Default: 9191
15 -l, --listen=<> Network address server will listen. Default: localhost
16 -k, --key=<> PEM private key file for TLS 1.2 HTTP server.
17 -c, --certs=<> PEM certificates file for TLS 1.2 HTTP server.
18 -a, --access=TOKEN|@FILE Access token to match 'X-Access-Token' HTTP header value.
19 -r, --access-read Allows unrestricted read-only data access.
20 -C, --cors Enable COSR response headers for HTTP server
21 -t, --trunc Cleanup/reset database file on open.
22 -w, --wal use the write ahead log (WAL). Used to provide data durability.
23
24Advanced options:
25 -S, --sbz=NUM Max sorting buffer size. If exceeded, an overflow temp file for data will be created.
26 Default: 16777216, min: 1048576
27 -D, --dsz=NUM Initial size of buffer to process/store document on queries. Preferable average size of document.
28 Default: 65536, min: 16384
29 -T, --trylock Exit with error if database is locked by another process.
30 If not set, current process will wait for lock release.
31
32```
33