Lattice Setup & Configuration
This guide covers all configuration options for Station Lattice, including config file setup, environment variables, TLS encryption, and NKey authentication.Configuration Methods
Station Lattice can be configured through:- CLI flags (highest priority)
- Environment variables
- Config file (
config.yaml)
Config File
Add alattice section to your config.yaml:
config.yaml
Environment Variables
All lattice settings can be configured via environment variables:CLI Flags
Orchestrator Configuration
Basic Setup
orchestrator-config.yaml
JetStream Storage
The orchestrator uses JetStream for persistent storage:Cluster Mode (High Availability)
For production deployments, run multiple orchestrators in cluster mode:orchestrator-1.yaml
Member Configuration
Basic Setup
member-config.yaml
Multiple NATS URLs (Failover)
Reconnection Settings
Security Configuration
TLS Encryption
Generate certificates for secure communication:orchestrator-config.yaml
member-config.yaml
NKey Authentication
NKeys provide secure, passwordless authentication using Ed25519 keys. Generate NKey pairs:orchestrator-config.yaml
member-config.yaml
Agent Configuration
Declaring Capabilities
Agents can declare capabilities for routing:agent.yaml
Restricting Remote Access
Control which agents can be invoked remotely:config.yaml

