Replace env vars with persistent config
This commit is contained in:
@@ -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"):
|
||||
|
||||
Reference in New Issue
Block a user