Standardize SurClaw ports away from defaults
- Change the API default listen port from 3000 to 3100 and include the Docker frontend origin in default CORS. - Point Vite's default API proxy, Docker API container port, and Nginx upstream to 3100. - Keep Docker host ports on 4002 for web, 3002 for API, and 5433 for PostgreSQL. - Update environment examples and documentation to remove stale localhost:3000 guidance.
This commit is contained in:
@@ -12,12 +12,12 @@ import { SpeechService } from './speech/speech.service.js';
|
||||
|
||||
const bootstrap = async () => {
|
||||
const app = await NestFactory.create(AppModule);
|
||||
const port = Number(process.env.API_PORT ?? 3000);
|
||||
const port = Number(process.env.API_PORT ?? 3100);
|
||||
|
||||
app.setGlobalPrefix('api');
|
||||
app.useGlobalFilters(new ApiExceptionFilter());
|
||||
app.enableCors({
|
||||
origin: process.env.CORS_ORIGIN?.split(',') ?? ['http://localhost:3001'],
|
||||
origin: process.env.CORS_ORIGIN?.split(',') ?? ['http://localhost:3001', 'http://localhost:4002'],
|
||||
credentials: true,
|
||||
});
|
||||
app.use(cookieParser());
|
||||
|
||||
Reference in New Issue
Block a user