Add example environment files for new node setup

This commit is contained in:
aitbc
2026-04-15 10:25:33 +02:00
parent d342c2d5ab
commit 4b82d14fe0
2 changed files with 178 additions and 0 deletions

50
examples/node.env.example Normal file
View File

@@ -0,0 +1,50 @@
# AITBC Node-Specific Environment Configuration Template
# Copy this file to /etc/aitbc/node.env and customize for each node
# This file contains variables unique to each node - DO NOT share across nodes
# =========================
# Node Identity
# =========================
# Unique identifier for this node (must be different for each node)
NODE_ID=aitbc
# =========================
# P2P Configuration
# =========================
# P2P node identity (must be unique for each node)
p2p_node_id=aitbc
# Proposer ID (PoA authority/block proposer)
# Each node should have its own unique proposer_id
proposer_id=ait1ytkh0cn8v2a4zjwzyav6854832myf9j7unsse8yntmuwzst4qhtqe9hqdw
# 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")
p2p_peers=aitbc1:7070
# =========================
# Trusted Propers
# =========================
# For follower nodes - list of trusted proposer addresses
# Leave empty for proposer nodes
trusted_proposers=
# =========================
# Node-Specific Host Bindings (optional)
# =========================
# Override default host bindings if needed for this specific node
# NODE_HOST=0.0.0.0
# NODE_PORT=7070
# =========================
# Setup Instructions
# =========================
# 1. Copy this template: cp /opt/aitbc/examples/node.env.example /etc/aitbc/node.env
# 2. Edit /etc/aitbc/node.env and set unique values for:
# - NODE_ID (unique per node)
# - p2p_node_id (unique per node)
# - proposer_id (unique per node)
# - p2p_peers (list other nodes in network)
# 3. Restart services: systemctl restart aitbc-blockchain-p2p
# 4. Verify connectivity: journalctl -fu aitbc-blockchain-p2p