From 7e303468b97465056d8c55d623115b4e8cedc941 Mon Sep 17 00:00:00 2001 From: aitbc Date: Tue, 26 May 2026 09:14:45 +0200 Subject: [PATCH] docs: add configuration files section to SETUP.md - Added new Configuration Files section explaining blockchain.env and node.env - Clarified that AITBC does NOT use /etc/aitbc/.env - Updated Production Considerations to reference correct config files - Fixes confusion for new nodes joining open island --- docs/deployment/SETUP.md | 34 ++++++++++++++++++++++++++++------ 1 file changed, 28 insertions(+), 6 deletions(-) diff --git a/docs/deployment/SETUP.md b/docs/deployment/SETUP.md index befd167a..77f9c008 100644 --- a/docs/deployment/SETUP.md +++ b/docs/deployment/SETUP.md @@ -150,15 +150,37 @@ source ../.venv/bin/activate python -m uvicorn app.main:app --host 0.0.0.0 --port 8000 ``` +## Configuration Files + +AITBC uses two main configuration files located in `/etc/aitbc/`: + +### /etc/aitbc/blockchain.env +Contains blockchain-specific environment variables: +- Chain ID and network configuration +- RPC and P2P binding settings +- Database and Redis connections +- Block production settings +- Gossip and sync configuration + +### /etc/aitbc/node.env +Contains node-specific environment variables: +- Node ID and island ID +- Node role (genesis/follower) +- P2P port configuration +- Node-specific settings + +**Note**: AITBC does NOT use `/etc/aitbc/.env`. All configuration should be in `blockchain.env` and `node.env`. + ## Production Considerations For production deployment: -1. Configure proper environment variables -2. Set up reverse proxy (nginx) -3. Configure SSL certificates manually outside `scripts/setup.sh` -4. Set up log rotation -5. Configure monitoring and alerts -6. Use proper database setup (PostgreSQL/Redis) +1. Configure `/etc/aitbc/blockchain.env` with proper environment variables +2. Configure `/etc/aitbc/node.env` with node-specific settings +3. Set up reverse proxy (nginx) +4. Configure SSL certificates manually outside `scripts/setup.sh` +5. Set up log rotation +6. Configure monitoring and alerts +7. Use proper database setup (PostgreSQL/Redis) ## Hermes Skills Integration