Configuration

Up a Level

There are four ways of setting configuration values. In the order of priority, with the lower one overriding or replacing values of the ones above it:

Database

The databse connection URL has no default and must be set:

For the YAML file, setting it would look like:

Configuration Files

At the moment, the only supported configuration file is YAML format. This works with the nested set of structures that matches the command used. For example, For example, `leicmin http serve --port=9000` can also be set using the `-c` or `--config` with the path to the file that looks like:

There are two examples in the `//.config` folder:

Environment Variables

Enviroment variables that start with `LEICMIN_` are used to configure settings, as if they were provided from the command line. Almost any option in the configuration file can be set in this manner:

For example, `leicmin http serve --port=9000` can also be set by `LEICMIN_HTTP__SERVE__PORT=9000`.

Footer

Below are various useful links within this site and to related sites (not all have been converted over to Gemini).

Categories

D. Moonfire

Fedran

The Moonfires

HTML