Options are read from the following sources. Options in later sources overwrite previous options.
- Defaults from
config.py
module. /etc/total-tolles-ferleihsystem.conf
./total-tolles-ferleihsystem.conf
- Path specified in
CONFIG_FILE
- Environment Variables
name | ENV | description | standard value |
---|---|---|---|
FLASK_APP | ✔️ | Name of Flask APP | total_tolles_ferleihsystem |
MODE | ✔️ | Mode Selector for PRODUCTION , DEBUG or TEST Environment. Only as env variable! |
PRODUCTION |
JWT_SECRET_KEY | ✔️ | Secret key for JWT Tokens. Do NOT make this public! Use a random string! | |
SQLALCHEMY_DATABASE_URI | ✔️ | Url for Database. More Info | sqlite://:memory: |
SQLITE_FOREIGN_KEYS | Use Sqlite with Foreign Key checks enabled. | True |
|
LOG_PATH | ✔️ | Path to log folder. | /tmp |
TMP_DIRECTORY | /tmp |
||
DATA_DIRECTORY | /tmp |
||
CONFIG_FILE | ✔️ | Path to a valid config file (python file). Only as env variable! | total-tolles-ferleihsystem.conf |
CELERY_BROKER_URL | ✔️ | Url for Celery compatible Broker. More Info | amqp://localhost |
CELERY_RESULT_BACKEND | ✔️ | Url for Celery compatible result Backend. More Info | rpc:// |
LOG_FORMAT | Standard Python log format string. | ||
AUTH_LOG_FORMAT | Standard Python log format string. |