Overview

This section documents all configuration options for NCN Network v2 components.


Configuration Methods

NCN Network components can be configured through:

  1. Environment Variables - Primary method

  2. Configuration Files - For complex settings (e.g., .env files)

  3. Command Line Arguments - For runtime overrides

Priority Order

Command Line Args > Environment Variables > Config Files > Defaults

Configuration 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

Location: 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

Component
Required
Recommended
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

Last updated