unify all ports: app=3010, infra=3184-3187, cleanup debug markers
This commit is contained in:
@@ -2,7 +2,7 @@ import { registerAs } from '@nestjs/config';
|
||||
|
||||
export default registerAs('app', () => ({
|
||||
nodeEnv: process.env.NODE_ENV,
|
||||
port: parseInt(process.env.PORT ?? '3000', 10),
|
||||
port: parseInt(process.env.PORT ?? '3010', 10),
|
||||
host: process.env.HOST ?? '0.0.0.0',
|
||||
trustProxy: parseInt(process.env.TRUST_PROXY ?? '1', 10),
|
||||
|
||||
@@ -15,7 +15,7 @@ export default registerAs('app', () => ({
|
||||
|
||||
redis: {
|
||||
host: process.env.REDIS_HOST ?? 'localhost',
|
||||
port: parseInt(process.env.REDIS_PORT ?? '6379', 10),
|
||||
port: parseInt(process.env.REDIS_PORT ?? '3185', 10),
|
||||
},
|
||||
|
||||
rabbitmq: {
|
||||
@@ -23,7 +23,7 @@ export default registerAs('app', () => ({
|
||||
},
|
||||
|
||||
cors: {
|
||||
origins: (process.env.CORS_ORIGINS ?? 'http://localhost:3000').split(','),
|
||||
origins: (process.env.CORS_ORIGINS ?? 'http://localhost:3010').split(','),
|
||||
},
|
||||
|
||||
throttle: {
|
||||
|
||||
@@ -4,7 +4,7 @@ export const envSchema = z.object({
|
||||
NODE_ENV: z
|
||||
.enum(['development', 'production', 'test'])
|
||||
.default('development'),
|
||||
PORT: z.coerce.number().int().positive().default(3000),
|
||||
PORT: z.coerce.number().int().positive().default(3010),
|
||||
HOST: z.string().default('0.0.0.0'),
|
||||
TRUST_PROXY: z.coerce.number().int().min(0).default(1),
|
||||
|
||||
@@ -19,15 +19,15 @@ export const envSchema = z.object({
|
||||
POSTGRES_DB: z.string().min(1),
|
||||
|
||||
REDIS_HOST: z.string().default('localhost'),
|
||||
REDIS_PORT: z.coerce.number().int().positive().default(6379),
|
||||
REDIS_PORT: z.coerce.number().int().positive().default(3185),
|
||||
|
||||
RABBITMQ_USER: z.string().min(1),
|
||||
RABBITMQ_PASSWORD: z.string().min(1),
|
||||
RABBITMQ_HOST: z.string().default('localhost'),
|
||||
RABBITMQ_PORT: z.coerce.number().int().positive().default(5672),
|
||||
RABBITMQ_PORT: z.coerce.number().int().positive().default(3186),
|
||||
RABBITMQ_URL: z.string(),
|
||||
|
||||
CORS_ORIGINS: z.string().default('http://localhost:3000'),
|
||||
CORS_ORIGINS: z.string().default('http://localhost:3010'),
|
||||
|
||||
THROTTLE_TTL: z.coerce.number().int().positive().default(60),
|
||||
THROTTLE_LIMIT: z.coerce.number().int().positive().default(10),
|
||||
|
||||
Reference in New Issue
Block a user