Replace env vars with persistent config
This commit is contained in:
@@ -13,9 +13,9 @@ from utils import generate_node_nickname
|
|||||||
app_conf = Config()
|
app_conf = Config()
|
||||||
|
|
||||||
# --- Client Configuration ---
|
# --- Client Configuration ---
|
||||||
SERVER_WS_URI = os.getenv("SERVER_WS_URI", "ws://localhost:8765")
|
SERVER_WS_URI = app_conf.get("SERVER_WS_URI", "ws://localhost:8765")
|
||||||
SERVER_API_URL = os.getenv("SERVER_API_URL", "http://localhost:5000")
|
SERVER_API_URL = app_conf.get("SERVER_API_URL", "http://localhost:5000")
|
||||||
CLIENT_API_URL = os.getenv("CLIENT_API_URL", "http://localhost:8001")
|
CLIENT_API_URL = app_conf.get("CLIENT_API_URL", "http://localhost:8001")
|
||||||
|
|
||||||
# Get/set the ID of this node
|
# Get/set the ID of this node
|
||||||
if not app_conf.get("client_id"):
|
if not app_conf.get("client_id"):
|
||||||
|
|||||||
Reference in New Issue
Block a user