niom-turn/docs/config/runtime.md

30 lines
716 B
Markdown

# Runtime Configuration
## Dateien
- `appsettings.example.json`: Beispiel mit Server-Bind und Test-Credentials.
- `appsettings.json`: Produktiverstellung (bind, TLS, Credentials).
## Struktur
```
Config {
server: ServerOptions {
bind: String,
tls_cert: Option<String>,
tls_key: Option<String>,
},
credentials: Vec<CredentialEntry> {
username: String,
password: String,
}
}
```
## Default-Fallbacks (siehe `main.rs`)
- Bind: `0.0.0.0:3478`
- Single Test Credential: `testuser` / `secretpassword`
## TODOs
- Shared Secret / REST API zur Credential-Verwaltung.
- Konfigurierbare TLS-Bind-Adresse (`turns` Standard 5349).
- Health-Port (HTTP) für Monitoring.