mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-07-15 18:27:05 +00:00
Merge branch 'dev' into create-group-endpoint
This commit is contained in:
10
src/main.ts
10
src/main.ts
@ -8,12 +8,6 @@ import { ValidationPipe } from '@nestjs/common';
|
||||
async function bootstrap() {
|
||||
const app = await NestFactory.create(AuthModule);
|
||||
|
||||
// Enable 'trust proxy' setting
|
||||
app.use((req, res, next) => {
|
||||
app.getHttpAdapter().getInstance().set('trust proxy', 1);
|
||||
next();
|
||||
});
|
||||
|
||||
app.enableCors();
|
||||
|
||||
app.use(
|
||||
@ -33,7 +27,7 @@ async function bootstrap() {
|
||||
|
||||
app.useGlobalPipes(new ValidationPipe());
|
||||
|
||||
await app.listen(4001);
|
||||
await app.listen(process.env.PORT || 4000);
|
||||
}
|
||||
console.log('Starting auth at port 4001...');
|
||||
console.log('Starting auth at port ...', process.env.PORT || 4000);
|
||||
bootstrap();
|
||||
|
Reference in New Issue
Block a user