fix: 🐛 修复系统配置页保存配置的bug
This commit is contained in:
@@ -47,17 +47,17 @@ ON DUPLICATE KEY UPDATE id = id;
|
||||
|
||||
-- 插入系统配置
|
||||
INSERT INTO config (`key`, `value`, description) VALUES
|
||||
('website_name', '', '网站名称'),
|
||||
('admin_domain', '', '运营后台域名'),
|
||||
('player_domain', '', '玩家中心域名'),
|
||||
('server_host', '', '后端服务器主机地址'),
|
||||
('server_port', '', '后端服务器端口'),
|
||||
('game_api_url', '', '游戏服务API地址'),
|
||||
('game_psk', '', '游戏服务端的PSK'),
|
||||
('jwt_secret', '', 'JWT密钥'),
|
||||
('jwt_expires_in', '', 'JWT过期时间'),
|
||||
('jwt_refresh_secret', '', 'JWT刷新令牌密钥'),
|
||||
('jwt_refresh_expires_in', '', 'JWT刷新令牌过期时间'),
|
||||
('website_name', '梦幻西游WEB版', '网站名称'),
|
||||
('admin_domain', 'http://localhost:5173', '运营后台域名'),
|
||||
('player_domain', 'http://localhost:5173', '玩家中心域名'),
|
||||
('server_host', 'localhost', '后端服务器主机地址'),
|
||||
('server_port', '3000', '后端服务器端口'),
|
||||
('game_api_url', 'http://127.0.0.1:8080/tool/http', '游戏服务API地址'),
|
||||
('game_psk', 'THIS_IS_A_32_BYTE_FIXED_PSK!!!!!', '游戏服务端的PSK'),
|
||||
('jwt_secret', 'your_jwt_secret_key_here_change_in_production', 'JWT密钥'),
|
||||
('jwt_expires_in', '24h', 'JWT过期时间'),
|
||||
('jwt_refresh_secret', 'your_jwt_refresh_secret_key_here_change_in_production', 'JWT刷新令牌密钥'),
|
||||
('jwt_refresh_expires_in', '7d', 'JWT刷新令牌过期时间'),
|
||||
('service_status', 'running', '服务运行状态'),
|
||||
('maintenance_mode', 'false', '维护模式开关')
|
||||
ON DUPLICATE KEY UPDATE id = id;
|
||||
|
||||
Reference in New Issue
Block a user