Path: redb/redb.Templates/templates/route-xml/redb-route-sql-batch/config/context.sample.json Snapshot: redb, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages. License: Apache-2.0. Repository: https://github.com/redbase-app/redb Page: https://redbase.app/src/dev-2026-12-06/redb/redb.Templates/templates/route-xml/redb-route-sql-batch/config/context.sample.json ---- { "//": [ "Deployment sample: copy it as context.json next to the package on the host. Never put real secrets here.", "The merged configuration, later layers win:", " 1. host appsettings, Contexts default section", " 2. host appsettings, this context's section", " 3. this file: Contexts.default, then Contexts.modulectx", " 4. in-package config/routemodule.config.json: ContextName and AutoStart only", " 5. Override: environment variables (secrets live here)", "Every {{key}} without a {{key:default}} in the XML must get a value from one of these layers:", "the built package lists them in manifest.json under RequiredConfigKeys, and the module stops at init when one is missing.", "The connection strings of the other databases, with ProviderName in context.xml:", " Microsoft.Data.Sqlite Data Source=modulectx.db", " Npgsql Host=localhost;Port=5432;Database=modulectx;Username=modulectx;Password=...", " Microsoft.Data.SqlClient Server=localhost,1433;Database=modulectx;User Id=modulectx;Password=...;TrustServerCertificate=true" ], "Contexts": { "default": {}, "modulectx": { //#if (db == "sqlite") "db.connection": "Data Source=modulectx.db", //#elseif (db == "postgres") "db.connection": "Host=localhost;Port=5432;Database=modulectx;Username=modulectx;Password=change-me", //#else "db.connection": "Server=localhost,1433;Database=modulectx;User Id=modulectx;Password=change-me;TrustServerCertificate=true", //#endif "orders.period": "200", "batch.period": "5000" } } }