mirror of
https://github.com/maxdorninger/MediaManager.git
synced 2026-04-17 23:23:25 +02:00
modify notification module config
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import os
|
||||
from pathlib import Path
|
||||
|
||||
from pydantic import AnyHttpUrl
|
||||
@@ -27,7 +28,7 @@ class BasicConfig(BaseSettings):
|
||||
|
||||
|
||||
class AllEncompassingConfig(BaseSettings):
|
||||
model_config = SettingsConfigDict(toml_file="config.toml")
|
||||
model_config = SettingsConfigDict(toml_file=os.getenv("CONFIG_FILE", "./config.toml"))
|
||||
"""
|
||||
This class is used to load all configurations from the environment variables.
|
||||
It combines the BasicConfig with any additional configurations needed.
|
||||
|
||||
Reference in New Issue
Block a user