Replace env vars with persistent config

This commit is contained in:
Logan Cusano
2025-06-13 22:01:14 -04:00
parent fa4fcbd18d
commit 84135f1eb0

View File

@@ -13,9 +13,9 @@ from utils import generate_node_nickname
app_conf = Config()
# --- Client Configuration ---
SERVER_WS_URI = os.getenv("SERVER_WS_URI", "ws://localhost:8765")
SERVER_API_URL = os.getenv("SERVER_API_URL", "http://localhost:5000")
CLIENT_API_URL = os.getenv("CLIENT_API_URL", "http://localhost:8001")
SERVER_WS_URI = app_conf.get("SERVER_WS_URI", "ws://localhost:8765")
SERVER_API_URL = app_conf.get("SERVER_API_URL", "http://localhost:5000")
CLIENT_API_URL = app_conf.get("CLIENT_API_URL", "http://localhost:8001")
# Get/set the ID of this node
if not app_conf.get("client_id"):