refactor(ports): standardize service ports to 8000-8017 range and update CORS configurations across all services
- Update CORS allow_origins in blockchain-node app.py and gossip relay.py to use new port logic (8000-8016) - Update coordinator-api config.py and config_pg.py with standardized port ranges and service labels - Update coordinator-api health check script from port 18000 to 8000 - Update geo_load_balancer.py to use configurable host/port (default 0.0.0.0:8017) - Update agent_security.py sandbox
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
HEALTH_URL="http://127.0.0.1:18000/v1/health"
|
||||
HEALTH_URL="http://127.0.0.1:8000/v1/health"
|
||||
MAX_RETRIES=10
|
||||
RETRY_DELAY=2
|
||||
|
||||
|
||||
@@ -148,4 +148,6 @@ async def create_app():
|
||||
|
||||
if __name__ == '__main__':
|
||||
app = asyncio.run(create_app())
|
||||
web.run_app(app, host='127.0.0.1', port=8080)
|
||||
host = os.environ.get('HOST', '0.0.0.0')
|
||||
port = int(os.environ.get('PORT', 8017))
|
||||
web.run_app(app, host=host, port=port)
|
||||
|
||||
Reference in New Issue
Block a user