mirror of
https://github.com/fluxerapp/fluxer.git
synced 2026-09-02 21:04:06 +03:00
fix(api): configure email app base URL separately
This commit is contained in:
@@ -182,6 +182,7 @@ function defaultConfig(): MasterConfig {
|
||||
provider: 'none',
|
||||
from_email: '',
|
||||
from_name: 'Fluxer',
|
||||
app_base_url: '',
|
||||
},
|
||||
sms: {
|
||||
enabled: false,
|
||||
|
||||
@@ -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},
|
||||
|
||||
Reference in New Issue
Block a user