chore: sync port references and docs to 4000s infra
This commit is contained in:
+1
-1
@@ -137,7 +137,7 @@ export const config: AppConfig = {
|
||||
storageChatId: parseInt(process.env.STORAGE_CHANNEL_ID!, 10),
|
||||
baseUrl: process.env.BASE_URL!,
|
||||
databaseUrl: process.env.DATABASE_URL!,
|
||||
port: parseInt(process.env.PORT!, 10) || 3000,
|
||||
port: parseInt(process.env.PORT!, 10) || 4000,
|
||||
nodeEnv: process.env.NODE_ENV || 'development',
|
||||
logLevel: process.env.LOG_LEVEL || 'info',
|
||||
rateLimitWindowMs: parseNumber(process.env.RATE_LIMIT_WINDOW_MS, 60000),
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
const stripPort = (host: string): string => {
|
||||
// Handle IPv6: [::1]:8080 -> [::1]
|
||||
// Handle IPv6: [::1]:4321 -> [::1]
|
||||
if (host.startsWith('[')) {
|
||||
const closeBracket = host.indexOf(']');
|
||||
return host.slice(0, closeBracket + 1).toLowerCase();
|
||||
|
||||
Reference in New Issue
Block a user