fix: ADMIN_EMAIL → ADMIN_EMAILS, add default admin emails
Rename env var to plural (CSV list) in CI yml to match the actual config key. Add hendrik@beanflow.coffee and simon@beanflows.coffee as hardcoded defaults so they get admin access without needing the env var set explicitly. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -99,7 +99,7 @@ test:web:
|
||||
# SESSION_LIFETIME_DAYS=${SESSION_LIFETIME_DAYS:-30}
|
||||
# RESEND_API_KEY=$RESEND_API_KEY
|
||||
# EMAIL_FROM=${EMAIL_FROM:-hello@example.com}
|
||||
# ADMIN_EMAIL=${ADMIN_EMAIL:-}
|
||||
# ADMIN_EMAILS=${ADMIN_EMAILS:-}
|
||||
# RATE_LIMIT_REQUESTS=${RATE_LIMIT_REQUESTS:-100}
|
||||
# RATE_LIMIT_WINDOW=${RATE_LIMIT_WINDOW:-60}
|
||||
# PADDLE_API_KEY=$PADDLE_API_KEY
|
||||
|
||||
@@ -52,7 +52,9 @@ class Config:
|
||||
EMAIL_FROM: str = os.getenv("EMAIL_FROM", "hello@example.com")
|
||||
|
||||
ADMIN_EMAILS: list[str] = [
|
||||
e.strip().lower() for e in os.getenv("ADMIN_EMAILS", "").split(",") if e.strip()
|
||||
e.strip().lower()
|
||||
for e in os.getenv("ADMIN_EMAILS", "hendrik@beanflow.coffee,simon@beanflows.coffee").split(",")
|
||||
if e.strip()
|
||||
]
|
||||
|
||||
RATE_LIMIT_REQUESTS: int = int(os.getenv("RATE_LIMIT_REQUESTS", "100"))
|
||||
|
||||
Reference in New Issue
Block a user