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

1
TODO.md Normal file
View File

@@ -0,0 +1 @@
- Implement Telodendria [admin API](https://git.telodendria.org/Telodendria/Telodendria/src/branch/master/docs/user/admin/README.md)

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:

View File

@@ -476,4 +476,4 @@ async def space_hierachy(roomId):
return jsonify({
"errcode": "M_NOT_FOUND",
"error": "Room does not exist."
})
}), 404

View File

@@ -1,7 +1,8 @@
print("Available utils:")
a = [
"makekey"
"makekey",
"joinroom"
]
for t in a: