# Configuration Reference > Complete reference for all Guts node configuration options. ## Configuration Methods Guts supports three configuration methods, in order of precedence: 1. **Command-line flags** (highest priority) 2. **Environment variables** 3. **Configuration file** (lowest priority) ## Configuration File Default location: `config.yaml` (current directory) or `/etc/guts/config.yaml` ### Full Configuration Example ## Environment Variables All configuration options can be set via environment variables: | Variable | Description | Default | |----------|-------------|---------| | `GUTS_API_ADDR` | HTTP API listen address | `127.0.0.1:8080` | | `GUTS_P2P_ADDR` | P2P listen address | `0.0.0.0:9000` | | `GUTS_METRICS_ADDR` | Metrics listen address | `0.0.0.0:9090` | | `GUTS_DATA_DIR` | Data directory | `./data` | | `GUTS_LOG_LEVEL` | Log level | `info` | | `GUTS_LOG_FORMAT` | Log format | `json` | | `GUTS_PRIVATE_KEY` | Node private key (hex) | - | | `GUTS_PRIVATE_KEY_FILE` | Path to private key file | - | | `GUTS_BOOTSTRAP_NODES` | Bootstrap nodes (comma-separated) | - | | `GUTS_CONSENSUS_ENABLED` | Enable consensus | `false` | | `GUTS_CONSENSUS_USE_SIMPLEX_BFT` | Use Simplex BFT | `false` | | `GUTS_CONSENSUS_BLOCK_TIME_MS` | Block time (ms) | `2000` | | `GUTS_CONSENSUS_MAX_TXS_PER_BLOCK` | Max TXs per block | `1000` | | `GUTS_CONSENSUS_MEMPOOL_MAX_TXS` | Max mempool size | `10000` | | `GUTS_CONSENSUS_MEMPOOL_TTL_SECS` | Mempool TTL | `600` | | `GUTS_CONSENSUS_GENESIS_FILE` | Genesis file path | - | | `GUTS_STORAGE_BACKEND` | Storage backend | `rocksdb` | | `GUTS_REQUEST_TIMEOUT_SECS` | Request timeout | `30` | ## Command-Line Flags ## Configuration Validation The node validates configuration on startup: ## Example Configurations ### Development Node ### Production Full Node ### Validator Node ## Genesis File Format For validator networks: ## Related Documentation - [Networking Configuration](networking.md) - [Storage Configuration](storage.md) - [Security Configuration](security.md) - [Performance Tuning](performance.md)