forked from xiangwang25/whale-town-end-v2
fix: complete backend deployment hardening
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -169,7 +169,7 @@ export const DEFAULT_ZULIP_CONFIG: ZulipConfiguration = {
|
||||
botApiKey: '',
|
||||
},
|
||||
websocket: {
|
||||
port: 3000,
|
||||
port: 3001,
|
||||
namespace: '/game',
|
||||
pingInterval: 25000,
|
||||
pingTimeout: 5000,
|
||||
|
||||
Reference in New Issue
Block a user