update payos webhook

This commit is contained in:
2024-10-17 16:35:50 +07:00
parent 5c56e79d63
commit 4721077370
6 changed files with 86 additions and 3 deletions

View File

@@ -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();