aboutsummaryrefslogtreecommitdiffstats
path: root/packages/meshbay-hub/src/meshbay_hub/app.py
diff options
context:
space:
mode:
Diffstat (limited to 'packages/meshbay-hub/src/meshbay_hub/app.py')
-rw-r--r--packages/meshbay-hub/src/meshbay_hub/app.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/packages/meshbay-hub/src/meshbay_hub/app.py b/packages/meshbay-hub/src/meshbay_hub/app.py
index 7b187df..82ae110 100644
--- a/packages/meshbay-hub/src/meshbay_hub/app.py
+++ b/packages/meshbay-hub/src/meshbay_hub/app.py
@@ -107,8 +107,14 @@ def create_app(cfg: HubConfig | None = None) -> FastAPI:
await _backfill_email_hashes()
+ from meshbay_hub import hub_settings as _hub_settings
from meshbay_hub import mail as _mail
_mail.configure(cfg.identity.id)
+ # What `hub.toml` says the mail bounds are. The live values are read
+ # from `hub_settings` at each use, so an admin can change them from the
+ # panel while the hub is serving; these are what a missing row falls
+ # back to.
+ _hub_settings.set_mail_defaults(cfg.mail)
if cfg.identity.admin_usernames:
await _sync_admin_roles(cfg.identity.admin_usernames)