""" Config for the website's own lightweight backend — deliberately separate from apps/bi/backend/config.py. This site is its own deployment with its own .env and its own Resend account; nothing here is shared with the main app. """ import os class Config: RESEND_API_KEY = os.getenv("RESEND_API_KEY", "") MAIL_SENDER_NAME = os.getenv("MAIL_SENDER_NAME", "Bettersight Intelligence") MAIL_SENDER_ADDRESS = os.getenv("MAIL_SENDER_ADDRESS", "") SALES_EMAIL = os.getenv("SALES_EMAIL", "sales@bettersight.io") # Used to build absolute asset URLs (the logo) inside emails — email # clients load images over HTTP, they can't reliably render the # data: URI the site itself uses inline, so the logo needs a real, # publicly reachable URL rather than being embedded. SITE_BASE_URL = os.getenv("SITE_BASE_URL", "https://bettersight.io") # Per-IP, applied to every route in this backend — this is small, public, # unauthenticated surface (contact form + calculator emails), the same # abuse-prevention posture as the main app's own contact endpoint RATELIMIT_PER_HOUR = int(os.getenv("RATELIMIT_PER_HOUR", "20"))