update payos webhook
This commit is contained in:
@@ -2,6 +2,7 @@ import { NestFactory } from '@nestjs/core';
|
||||
import { AppModule } from './app.module';
|
||||
import { SwaggerModule, DocumentBuilder } from '@nestjs/swagger';
|
||||
import graphqlUploadExpress from 'graphql-upload/graphqlUploadExpress.js';
|
||||
import { Logger } from '@nestjs/common';
|
||||
|
||||
async function bootstrap() {
|
||||
const app = await NestFactory.create(AppModule);
|
||||
@@ -52,8 +53,10 @@ async function bootstrap() {
|
||||
maxFiles: 10,
|
||||
}),
|
||||
);
|
||||
|
||||
const host = process.env.LISTEN_HOST ?? '0.0.0.0';
|
||||
const port = process.env.LISTEN_PORT ?? 3000; // Default to 3000 if LISTEN_PORT is not set
|
||||
await app.listen(port);
|
||||
await app.listen(port, host, () => {
|
||||
Logger.log(`Server is running on http://${host}:${port}`, 'Bootstrap');
|
||||
});
|
||||
}
|
||||
bootstrap();
|
||||
|
||||
Reference in New Issue
Block a user