29 lines
1.4 KiB
Python
29 lines
1.4 KiB
Python
"""
|
|
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; its Resend account is the same one already used for Sightbox's
|
|
trial-expiry emails, not a separate one.
|
|
"""
|
|
|
|
import os
|
|
|
|
|
|
class Config:
|
|
RESEND_API_KEY = os.getenv("RESEND_API_KEY", "")
|
|
# "Bettersight" (not "Bettersight Intelligence") — this one backend
|
|
# sends notifications for BOTH bi.bettersight.io (the AI product) and
|
|
# bettersight.io (the parent company's apex page), so the From name
|
|
# stays neutral rather than naming just one of the two.
|
|
MAIL_SENDER_NAME = os.getenv("MAIL_SENDER_NAME", "Bettersight")
|
|
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"))
|