Support environment variable to specify configuration path
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user