Path: redb/redb.Templates/templates/route-xml/redb-route-email/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-email/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.", "mail.username, mail.password, mail.from and mail.to are such keys; the password goes through the environment." ], "Contexts": { "default": {}, "modulectx": { "mail.smtpHost": "smtp.example.org", "mail.smtpPort": "587", "mail.smtpSecurity": "StartTls", "mail.imapHost": "imap.example.org", "mail.imapPort": "993", "mail.imapSecurity": "Ssl", "mail.username": "modulectx@example.org", "mail.from": "modulectx@example.org", "mail.to": "modulectx@example.org", "mail.sendPeriod": "60000", "mail.htmlPeriod": "120000", "mail.pollPeriod": "30000" } } }