mirror of
https://github.com/benjamin-wilson/public-pool.git
synced 2025-03-29 19:22:43 +01:00
revert to http
This commit is contained in:
parent
354b7cc954
commit
3c4c35ab53
12
src/main.ts
12
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<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({
|
||||
|
Loading…
x
Reference in New Issue
Block a user