Support environment variable to specify configuration path

This commit is contained in:
2025-10-12 17:05:32 -04:00
parent 4a6e65226e
commit 4603ed86ac
4 changed files with 5 additions and 3 deletions

View File

@@ -12,7 +12,7 @@ server_name: str = ""
signing_key: str = ""
support: dict = {"contacts": []}
_CONFIG_PATH = Path("/etc/vona/config.toml")
_CONFIG_PATH = Path(os.getenv("VONA_CONFIG", "/etc/vona/config.toml"))
def _fatal(msg: str) -> None: