mirror of
https://github.com/benjamin-wilson/public-pool.git
synced 2026-09-29 09:05:06 -07:00
revert to http
This commit is contained in:
+6
-6
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user