fix: complete backend deployment hardening

This commit is contained in:
2026-08-01 01:43:53 +08:00
parent 77302354ac
commit 6fb977ceaf
5 changed files with 147 additions and 4 deletions

View File

@@ -360,7 +360,7 @@ export class ConfigManagerService implements OnModuleDestroy {
zulipBotEmail: process.env.ZULIP_BOT_EMAIL || 'bot@example.com',
zulipBotApiKey: process.env.ZULIP_BOT_API_KEY || '',
websocketPort: parseInt(process.env.WEBSOCKET_PORT || '3000', 10),
websocketPort: parseInt(process.env.WEBSOCKET_PORT || '3001', 10),
websocketNamespace: process.env.WEBSOCKET_NAMESPACE || '/game',
messageRateLimit: parseInt(process.env.MESSAGE_RATE_LIMIT || '10', 10),
@@ -1189,7 +1189,7 @@ export class ConfigManagerService implements OnModuleDestroy {
zulipServerUrl: 'https://your-zulip-server.com',
zulipBotEmail: 'bot@example.com',
zulipBotApiKey: '',
websocketPort: 3000,
websocketPort: 3001,
websocketNamespace: '/game',
messageRateLimit: 10,
messageMaxLength: 1000,

View File

@@ -169,7 +169,7 @@ export const DEFAULT_ZULIP_CONFIG: ZulipConfiguration = {
botApiKey: '',
},
websocket: {
port: 3000,
port: 3001,
namespace: '/game',
pingInterval: 25000,
pingTimeout: 5000,