feat: add env vars for FIEL encryption, MercadoPago, SMTP, and admin email
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -13,6 +13,25 @@ const envSchema = z.object({
|
|||||||
JWT_EXPIRES_IN: z.string().default('15m'),
|
JWT_EXPIRES_IN: z.string().default('15m'),
|
||||||
JWT_REFRESH_EXPIRES_IN: z.string().default('7d'),
|
JWT_REFRESH_EXPIRES_IN: z.string().default('7d'),
|
||||||
CORS_ORIGIN: z.string().default('http://localhost:3000'),
|
CORS_ORIGIN: z.string().default('http://localhost:3000'),
|
||||||
|
|
||||||
|
// FIEL encryption (separate from JWT to allow independent rotation)
|
||||||
|
FIEL_ENCRYPTION_KEY: z.string().min(32).default('dev-fiel-encryption-key-min-32-chars!!'),
|
||||||
|
FIEL_STORAGE_PATH: z.string().default('/var/horux/fiel'),
|
||||||
|
|
||||||
|
// MercadoPago
|
||||||
|
MP_ACCESS_TOKEN: z.string().optional(),
|
||||||
|
MP_WEBHOOK_SECRET: z.string().optional(),
|
||||||
|
MP_NOTIFICATION_URL: z.string().optional(),
|
||||||
|
|
||||||
|
// SMTP (Gmail Workspace)
|
||||||
|
SMTP_HOST: z.string().default('smtp.gmail.com'),
|
||||||
|
SMTP_PORT: z.string().default('587'),
|
||||||
|
SMTP_USER: z.string().optional(),
|
||||||
|
SMTP_PASS: z.string().optional(),
|
||||||
|
SMTP_FROM: z.string().default('Horux360 <noreply@horuxfin.com>'),
|
||||||
|
|
||||||
|
// Admin notification email
|
||||||
|
ADMIN_EMAIL: z.string().default('carlos@horuxfin.com'),
|
||||||
});
|
});
|
||||||
|
|
||||||
const parsed = envSchema.safeParse(process.env);
|
const parsed = envSchema.safeParse(process.env);
|
||||||
|
|||||||
Reference in New Issue
Block a user