From 3c4c35ab53610dd6dd7b16bc1d319b1c0429560f Mon Sep 17 00:00:00 2001 From: Ben Wilson Date: Thu, 3 Aug 2023 18:12:25 -0400 Subject: [PATCH] revert to http --- src/main.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main.ts b/src/main.ts index d195c05..92388be 100644 --- a/src/main.ts +++ b/src/main.ts @@ -3,7 +3,6 @@ import { NestFactory } from '@nestjs/core'; import { FastifyAdapter, NestFastifyApplication } from '@nestjs/platform-fastify'; import * as bitcoinjs from 'bitcoinjs-lib'; import { useContainer } from 'class-validator'; -import { readFileSync } from 'fs'; import * as ecc from 'tiny-secp256k1'; import { AppModule } from './app.module'; @@ -15,12 +14,13 @@ async function bootstrap() { return; } - const httpsOptions = { - key: readFileSync('./secrets/key.pem'), - cert: readFileSync('./secrets/cert.pem'), - }; + // const httpsOptions = { + // key: readFileSync('./secrets/key.pem'), + // cert: readFileSync('./secrets/cert.pem'), + // }; - const app = await NestFactory.create(AppModule, new FastifyAdapter({ https: httpsOptions })); + //const app = await NestFactory.create(AppModule, new FastifyAdapter({ https: httpsOptions })); + const app = await NestFactory.create(AppModule, new FastifyAdapter()); app.setGlobalPrefix('api') app.useGlobalPipes( new ValidationPipe({