fix(api): configure email app base URL separately

This commit is contained in:
Hampus
2026-08-27 03:26:11 +02:00
committed by GitHub
parent cb4c847d41
commit 58732f7770
8 changed files with 28 additions and 1 deletions
+1
View File
@@ -182,6 +182,7 @@ function defaultConfig(): MasterConfig {
provider: 'none',
from_email: '',
from_name: 'Fluxer',
app_base_url: '',
},
sms: {
enabled: false,
+1
View File
@@ -208,6 +208,7 @@ export interface MasterConfig {
provider: 'smtp' | 'none';
from_email: string;
from_name: string;
app_base_url: string;
webhook_secret?: string;
smtp?: {
host: string;
@@ -243,6 +243,7 @@ const NAMED_FLUXER_ENV_OVERRIDES: Record<string, NamedEnvOverride> = {
FLUXER_EMAIL_PROVIDER: {path: ['integrations', 'email', 'provider']},
FLUXER_EMAIL_FROM_EMAIL: {path: ['integrations', 'email', 'from_email']},
FLUXER_EMAIL_FROM_NAME: {path: ['integrations', 'email', 'from_name']},
FLUXER_EMAIL_APP_BASE_URL: {path: ['integrations', 'email', 'app_base_url']},
FLUXER_EMAIL_WEBHOOK_SECRET: {path: ['integrations', 'email', 'webhook_secret']},
FLUXER_EMAIL_SMTP_HOST: {path: ['integrations', 'email', 'smtp', 'host']},
FLUXER_EMAIL_SMTP_PORT: {path: ['integrations', 'email', 'smtp', 'port'], parse: parseEnvValue},