Configuration
This chapter describes various ways to configure Continuwuity.
Configuration file
Continuwuity uses a TOML config file for all of its settings. This is the recommended way to configure Continuwuity. Please refer to the example config file for all of these settings.
You can specify the config file to be used by Continuwuity with the command-line flag -c or --config:
Alternatively, you can use the environment variable CONTINUWUITY_CONFIG to specify the config file to be used; see the section on environment variables for more information.
Environment variables
All of the options in the config file can also be specified by using environment variables. This is ideal for containerised deployments and infrastructure-as-code scenarios.
The environment variable names are represented in all caps and prefixed with CONTINUWUITY_. They are mapped to config options in the ways demonstrated below:
Alternative prefixes
For backwards compatibility, Continuwuity also supports the following environment variable prefixes, in order of descending priority:
CONDUWUIT_*(compatibility)CONDUIT_*(legacy)
As an example, the environment variable CONTINUWUITY_CONFIG can also be expressed as CONDUWUIT_CONFIG or CONDUIT_CONFIG.
Option command-line flag
Continuwuity also supports setting individual config options in TOML format from the -O / --option flag. For example, you can set your server name via -O server_name=\"example.com\".
Note that the config is parsed as TOML, and shells like bash will remove quotes. Therefore, if the config option is a string, quote escapes must be properly handled. If the config option is a number or a boolean, this does not apply.
--option allow_registration=trueworks ✅-O max_request_size=99999999works ✅-O server_name=example.comdoes not work ❌--option log=\"debug\"works ✅--option server_name='"example.com'"works ✅
Order of priority
The above configuration methods are prioritised, in descending order, as below:
- Command-line
-o/--optionflags - Environment variables
CONTINUWUITY_*variablesCONDUWUIT_*variablesCONDUIT_*variables
- Config file
Therefore, you can use environment variables or the options flags to override values in the config file.
Executing startup commands
Continuwuity supports running admin commands on startup using the command-line flag --execute. This is treated as a standard admin command, without the need for the !admin prefix. For example, to create a new user:
Alternatively, you can configure CONTINUWUITY_ADMIN_EXECUTE or the config file value admin_execute with a list of commands.
This command-line argument can be paired with the --option flag.