Skip to content
This repository was archived by the owner on Mar 16, 2021. It is now read-only.

Configuration

Max Schmitt edited this page Nov 13, 2017 · 5 revisions

Configuration

Configuration via a file

The configuration is a YAML file. An example is located here.

Configuration via Environment Variables

To use environment variables you can do it by simply use the prefix GUS and the variable key name split by an underscore. The environment variables will override the normal configuration file. To use only environment variables (and change so the default values) create an empty config.yaml file.

Examples:

Key Value
GUS_GENERAL_ENABLEDEBUGMODE 0
GUS_GENERAL_SHORTEDIDLENGTH 8
GUS_GENERAL_DATADIR /opt/shortener/data
Clone this wiki locally