Configuration
The SignalWire Server SDK uses a layered configuration system. Settings can come from constructor parameters, environment variables, JSON config files, or sensible defaults. The layers are resolved in priority order:
- Constructor parameters — highest priority
- Environment variables — override config file values
- Config file values — loaded from JSON
- Defaults — built-in fallback values
Config File Discovery
When no explicit config file path is provided, the SDK searches for JSON config
files using ConfigLoader.search(), which checks these locations in order:
- Current working directory
./config/~/.signalwire/
See ConfigLoader for
the full file discovery logic and environment variable substitution syntax.