Overview
This section documents all configuration options for NCN Network v2 components.
Configuration Methods
NCN Network components can be configured through:
Environment Variables - Primary method
Configuration Files - For complex settings (e.g.,
.envfiles)Command Line Arguments - For runtime overrides
Priority Order
Command Line Args > Environment Variables > Config Files > DefaultsConfiguration Guides
Complete gateway configuration:
Wallet settings
Network addresses
Blockchain configuration
Payment settings
Compute node configuration:
Sandbox settings
Resource limits
Model paths
Execution settings
P2P Registry configuration:
P2P network settings
Validator settings
Storage settings
Complete reference of all environment variables across all components.
Network-specific configurations:
Local development
Forknet testnet
Sepolia testnet
Mainnet
Quick Reference
Gateway Node
Compute Node
P2P Registry
Network Configurations
Local Development
Forknet Testnet
Production (Mainnet)
Configuration Files
Gateway .env File
.env FileLocation: gateway_node/.env
Subnet Configuration
Location: Custom (used with subnet-cli)
Security Recommendations
Private Keys
Network Exposure
Sandbox Mode
Validation
Check Configuration
Required vs Optional
Gateway
Wallet, RPC, Contract, Registry
TLS, Metrics
Debug settings
Compute
Gateway addr
Wallet, Sandbox
Fallback
Registry
Listen addresses
Validator key
Sync settings
Next Steps
Gateway Configuration - Full gateway options
Compute Configuration - Compute node options
Environment Variables - Complete reference
Last updated
