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

Configuration

Max Schmitt edited this page May 25, 2018 · 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_ENABLE_DEBUG_MODE 0
GUS_SHORTED_ID_LENGTH 8
GUS_DATA_DIR /opt/shortener/data
Clone this wiki locally