Add backup functionality with escalation rules for moderation commands
- Updated .env.example to include backup configuration options. - Modified docker-compose.yml to mount backup volume. - Enhanced Dockerfile to install PostgreSQL client. - Added EscalationRule model to Prisma schema for managing warning escalation. - Updated environment validation in env.ts to include backup settings. - Refactored job handling in jobs.ts to implement backup jobs and cleanup. - Introduced escalation commands in moderation service for managing user warnings. - Updated moderation commands to apply escalation rules based on warning count.
This commit is contained in:
@@ -12,6 +12,8 @@ const EnvSchema = z.object({
|
||||
LOG_LEVEL: z.string().default('info'),
|
||||
DEFAULT_LOCALE: z.enum(['de', 'en']).default('de'),
|
||||
BACKUP_RETENTION_DAYS: z.coerce.number().int().positive().default(14),
|
||||
BACKUP_CRON: z.string().default('0 3 * * *'),
|
||||
BACKUP_DIR: z.string().default('/backups'),
|
||||
METRICS_TOKEN: z.string().optional(),
|
||||
HEALTH_PORT: z.coerce.number().int().positive().default(8080)
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user