716 B
716 B
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 (
turnsStandard 5349). - Health-Port (HTTP) für Monitoring.