Configuration
Abel's server configuration files is located in $ABEL_DIR/config.json
, where $ABEL_DIR
defaults to ~/.abel
.
A default configuration files looks like this:
{
"listen": "127.0.0.1:3000",
"auth_token": "<random-auth-token>",
"pool_size": null
}
The configurable options are:
listen
: The address Abel server will be listening to. Defaults to127.0.0.1:3000
auth_token
: Authentication token in UUID format. This can be set tonull
to remove authentication, but don't do this in production environment!pool_size
: Lua executor count. Defaults tostd::thread::available_parallelism() / 2
if the value is set tonull
.
These options are temporarily overridable with command line options. The config.json
will not be changed.
$ abel-server --listen 0.0.0.0:1024 --auth-token <new-auth-token>
INFO abel_server > Authentication token: <new-auth-token>
INFO abel_server > Abel is listening to 0.0.0.0:1024