-
Notifications
You must be signed in to change notification settings - Fork 0
Configuration Sources
alsi-lawr edited this page Jul 15, 2026
·
4 revisions
-
src/BlokeBot/appsettings.jsoncontains non-secret defaults and the configuration shape. -
appsettings.{Environment}.jsonoverlays the base file for the active ASP.NET environment. - Environment variables override file values; nested keys use
__. - Standard ASP.NET command-line configuration remains available when launching the executable directly.
Docker and the NixOS module select Production. The source workflow uses the local ASP.NET environment unless explicitly overridden.
The dashboard can start without Twitch credentials. The bot runtime remains offline until all four identity values are nonblank:
TwitchBot:Identity:BotUsername
TwitchBot:Identity:ClientId
TwitchBot:Identity:ClientSecret
TwitchBot:Identity:RedirectUri
Once activated, BlokeBot validates identity, runtime timing, and retry policy settings during startup. Invalid active configuration prevents startup rather than silently changing the requested values.
- Put ordinary values in environment variables or an external production settings file.
- Put
ClientSecretand any future secrets in a secret manager or protected environment file. - Keep the token cache and database on durable private storage.