refactor: merge .env.production into central .env and standardize paths
Some checks failed
Documentation Validation / validate-docs (push) Has been cancelled
Systemd Sync / sync-systemd (push) Successful in 4s

- Merge blockchain-node/.env.production into central /opt/aitbc/.env
- Update all blockchain paths to use standardized /var/lib/aitbc/ structure
- Remove separate .env.production file (merged into central config)
- Update systemd services to remove references to .env.production
- Standardize Coordinator API paths and RPC port (8006)
- Add trusted_proposers setting for follower nodes
- Update multi-node workflow to reflect merged configuration
- Use aitbc1genesis as default proposer in central .env
- All services now use single central .env file with standardized paths

This eliminates configuration file duplication and ensures consistent
directory structure across all AITBC services.
This commit is contained in:
aitbc1
2026-03-29 14:39:42 +02:00
parent 2860b0c8c9
commit bb7f592560
5 changed files with 4 additions and 5 deletions

View File

@@ -80,6 +80,7 @@ cp keystore/* /var/lib/aitbc/keystore/
# Update systemd services to use central .env and standard paths
# Note: systemd services already reference /opt/aitbc/.env by default
# The separate .env.production file has been merged into central .env
# No need to modify EnvironmentFile as they should use the central .env
# Just ensure the paths in .env are correct for the standard directory structure
@@ -270,11 +271,13 @@ cp /opt/aitbc/.env.aitbc.backup /opt/aitbc/.env # aitbc
### Service Configuration
- **Environment File**: All services use `/opt/aitbc/.env` (no separate config files)
- **Environment File**: All services use `/opt/aitbc/.env` (merged from .env.production)
- **Virtual Environment**: Central venv at `/opt/aitbc/venv`
- **Database Files**: `/var/lib/aitbc/data`
- **Wallet Credentials**: `/var/lib/aitbc/keystore`
- **Service Logs**: `/var/log/aitbc/` via journald
- **Standardized Paths**: All paths use `/var/lib/aitbc/` structure
- **No Separate Config Files**: `.env.production` merged into central `.env`
## Troubleshooting