feat(api): 账户资料与密码安全

This commit is contained in:
R524809
2026-09-03 16:56:20 +08:00
parent 46d98ab11e
commit a5b89ddb1d
13 changed files with 552 additions and 14 deletions
+12
View File
@@ -70,6 +70,18 @@ const environmentSchema = z.object({
.min(1)
.max(10_000)
.default(30),
AUTH_CHANGE_PASSWORD_IP_LIMIT: z.coerce
.number()
.int()
.min(1)
.max(1_000)
.default(10),
AUTH_CHANGE_PASSWORD_USER_LIMIT: z.coerce
.number()
.int()
.min(1)
.max(1_000)
.default(5),
TRUSTED_PROXY_CIDRS: z.string().default(''),
SWAGGER_ENABLED: z.enum(['true', 'false']).default('true'),
LOG_LEVEL: z.enum(['error', 'warn', 'log', 'debug']).default('log'),