修复安全与备份问题
This commit is contained in:
+2
-1
@@ -11,7 +11,8 @@ if (isProduction && !jwtSecret) {
|
||||
module.exports = {
|
||||
// 服务器配置
|
||||
port: process.env.PORT || 3000,
|
||||
host: process.env.HOST || '0.0.0.0',
|
||||
host: process.env.HOST || (isProduction ? '127.0.0.1' : '0.0.0.0'),
|
||||
trustProxy: process.env.TRUST_PROXY || (isProduction ? 'loopback' : false),
|
||||
|
||||
// JWT 配置
|
||||
jwtSecret: jwtSecret || 'dev-only-gamer-order-secret',
|
||||
|
||||
Reference in New Issue
Block a user