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:
parent
9af717ef7f
commit
2dcc654b70
12 changed files with 119 additions and 146 deletions
12
api/libretime_api/settings/_schema.py
Normal file
12
api/libretime_api/settings/_schema.py
Normal file
|
@ -0,0 +1,12 @@
|
|||
from libretime_shared.config import (
|
||||
BaseConfig,
|
||||
DatabaseConfig,
|
||||
GeneralConfig,
|
||||
RabbitMQConfig,
|
||||
)
|
||||
|
||||
|
||||
class Config(BaseConfig):
|
||||
general: GeneralConfig
|
||||
database: DatabaseConfig = DatabaseConfig()
|
||||
rabbitmq: RabbitMQConfig = RabbitMQConfig()
|
Loading…
Add table
Add a link
Reference in a new issue