revert to http

This commit is contained in:
Ben Wilson 2023-08-03 18:12:25 -04:00
parent 354b7cc954
commit 3c4c35ab53

View File

@ -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<NestFastifyApplication>(AppModule, new FastifyAdapter({ https: httpsOptions }));
//const app = await NestFactory.create<NestFastifyApplication>(AppModule, new FastifyAdapter({ https: httpsOptions }));
const app = await NestFactory.create<NestFastifyApplication>(AppModule, new FastifyAdapter());
app.setGlobalPrefix('api')
app.useGlobalPipes(
new ValidationPipe({