feat(api): load config using shared helpers

- add django settings module documentation
- use default for previously required fields

BREAKING CHANGE: The API command line interface require the
configuration file to be present. The default configuration file path is
`/etc/airtime/airtime.conf`
This commit is contained in:
jo 2022-03-01 13:22:24 +01:00 committed by Kyle Robbertze
parent 9af717ef7f
commit 2dcc654b70
12 changed files with 119 additions and 146 deletions

View file

@ -7,6 +7,7 @@ NotifyAccess=all
KillSignal=SIGQUIT
Environment=LIBRETIME_LOG_FILEPATH=/var/log/libretime/api.log
Environment=LIBRETIME_CONFIG_FILEPATH=/etc/airtime/airtime.conf
ExecStart=/usr/bin/uwsgi /etc/airtime/libretime-api.ini
User=libretime-api