Restore coordinator env settings and disable RPC block production
Some checks failed
Systemd Sync / sync-systemd (push) Has been cancelled

This commit is contained in:
aitbc
2026-04-15 10:51:28 +02:00
parent 5f3f587a19
commit 00eabf3064
3 changed files with 13 additions and 1 deletions

View File

@@ -6,6 +6,7 @@
# Core Environment
# =========================
NODE_ENV=production
APP_ENV=production
DEBUG=false
LOG_LEVEL=INFO
@@ -45,6 +46,11 @@ p2p_bind_port=7070
SECRET_KEY=production-secret-key-change-me-in-production
JWT_SECRET=production-jwt-secret-32-chars-long
BLOCKCHAIN_API_KEY=production-api-key-change-me
COORDINATOR_API_KEY=admin_prod_key_use_real_value
CLIENT_API_KEYS='["client_prod_key_use_real_value"]'
MINER_API_KEYS='["miner_prod_key_use_real_value"]'
ADMIN_API_KEYS='["admin_prod_key_use_real_value"]'
HMAC_SECRET=change_this_to_a_32_byte_random_secret
# =========================
# Database
@@ -98,7 +104,7 @@ TURN_SERVER=jitsi.bubuit.net:3478
# Island Configuration (Federated Mesh)
# =========================
ISLAND_ID=test-island-001
ISLAND_NAME=Test Island
ISLAND_NAME="Test Island"
IS_HUB=true
ISLAND_CHAIN_ID=ait-testnet
HUB_DISCOVERY_URL=aitbc
@@ -109,6 +115,8 @@ BRIDGE_ISLANDS=
# =========================
API_VERSION=v1
API_PREFIX=/api/v1
BLOCKCHAIN_RPC_URL=http://127.0.0.1:8006
COORDINATOR_BASE_URL=http://127.0.0.1:8000
RATE_LIMIT_REQUESTS_PER_MINUTE=1000
RATE_LIMIT_WINDOW_SECONDS=60

View File

@@ -18,6 +18,9 @@ p2p_node_id=aitbc
# Each node should have its own unique proposer_id
proposer_id=ait1ytkh0cn8v2a4zjwzyav6854832myf9j7unsse8yntmuwzst4qhtqe9hqdw
# Set false on follower/non-proposer nodes
# enable_block_production=false
# P2P Peers (comma-separated list of peer nodes)
# List other nodes in the network that this node should connect to
# Format: hostname:port (e.g., "aitbc1:7070,aitbc2:7070")

View File

@@ -9,6 +9,7 @@ Group=root
WorkingDirectory=/opt/aitbc/apps/blockchain-node
EnvironmentFile=/etc/aitbc/.env
EnvironmentFile=/etc/aitbc/node.env
Environment=enable_block_production=false
Environment=PATH=/usr/bin:/usr/local/bin:/usr/bin:/bin
Environment=PYTHONPATH=/opt/aitbc/apps/blockchain-node/src:/opt/aitbc/apps/blockchain-node/scripts
ExecStart=/opt/aitbc/venv/bin/python -m uvicorn aitbc_chain.app:app --host ${rpc_bind_host} --port ${rpc_bind_port}