| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- -- 客户端心跳与密钥轮换相关配置
- -- 心跳失败连续次数超过后暂停检测并退出登录;客户端心跳间隔;密钥轮换检查间隔;密钥轮换连续失败次数超过后退出登录
- SET NAMES utf8mb4;
- -- 更新已有心跳失败次数默认值为 20(若存在则更新,否则插入)
- INSERT INTO `system_config` (
- `config_key`,
- `config_value`,
- `config_type`,
- `app_name`,
- `description`,
- `is_system`,
- `is_editable`,
- `is_deleted`,
- `created_at`,
- `updated_at`
- ) VALUES
- (
- 'max_heartbeat_failures',
- '20',
- 'int',
- 'backend-client',
- '心跳失败连续次数,超过后暂停检测,客户端退出登录',
- 1,
- 1,
- 0,
- NOW(),
- NOW()
- ),
- (
- 'client_heartbeat_interval_seconds',
- '20',
- 'int',
- 'backend-client',
- '客户端心跳间隔秒数',
- 1,
- 1,
- 0,
- NOW(),
- NOW()
- ),
- (
- 'key_rotation_check_interval_minutes',
- '30',
- 'int',
- 'backend-client',
- '密钥轮换检查间隔分钟数',
- 1,
- 1,
- 0,
- NOW(),
- NOW()
- ),
- (
- 'max_key_rotation_failures',
- '20',
- 'int',
- 'backend-client',
- '密钥轮换连续失败次数,超过后客户端退出登录',
- 1,
- 1,
- 0,
- NOW(),
- NOW()
- )
- ON DUPLICATE KEY UPDATE
- `config_value` = VALUES(`config_value`),
- `description` = VALUES(`description`),
- `updated_at` = NOW();
|