feat: add redis gateway protection and task recovery

This commit is contained in:
wlx committed 2026-09-08 18:02:45 +08:00
1 parent cbc7317aa8
commit 473479fc4c
17 files changed
+272 -10

No files matched your search

@@ -11,6 +11,8 @@ spring:
data:
redis:
url: ${SPRING_DATA_REDIS_URL:redis://localhost:6379}
connect-timeout: 2s
timeout: 2s
flyway:
enabled: ${FLYWAY_ENABLED:true}
baseline-on-migrate: true
@@ -31,6 +33,13 @@ management:
enabled: true
moyi:
gateway:
requests-per-minute: ${GATEWAY_REQUESTS_PER_MINUTE:60}
reads-per-minute: ${GATEWAY_READS_PER_MINUTE:300}
default-model-concurrency: ${GATEWAY_DEFAULT_MODEL_CONCURRENCY:4}
tasks:
max-queued-per-model: ${TASK_MAX_QUEUED_PER_MODEL:100}
worker-interval-ms: ${MOYI_TASK_WORKER_INTERVAL_MS:1000}
web:
cors-origins: ${CONTROL_PLANE_CORS_ORIGINS:http://localhost:5173,http://127.0.0.1:5173}
auth: