mirror of
https://github.com/benjamin-wilson/public-pool.git
synced 2026-09-29 09:05:06 -07:00
feat: add docker (#6)
* misc: improve match version of types/node * feat: improve stop with sigint signal * feat: add docker * feat: add docker in readme
This commit is contained in:
+7
-2
@@ -25,7 +25,6 @@ async function bootstrap() {
|
||||
cert: readFileSync(`${currentDirectory}/secrets/cert.pem`),
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
const app = await NestFactory.create<NestFastifyApplication>(AppModule, new FastifyAdapter(options));
|
||||
@@ -38,10 +37,15 @@ async function bootstrap() {
|
||||
forbidUnknownValues: true
|
||||
}),
|
||||
);
|
||||
|
||||
process.on('SIGINT', () => {
|
||||
console.log(`Stopping services`);
|
||||
process.exit(0);
|
||||
});
|
||||
|
||||
app.enableCors();
|
||||
useContainer(app.select(AppModule), { fallbackOnErrors: true });
|
||||
|
||||
|
||||
//Taproot
|
||||
bitcoinjs.initEccLib(ecc);
|
||||
|
||||
@@ -50,4 +54,5 @@ async function bootstrap() {
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
bootstrap();
|
||||
|
||||
Reference in New Issue
Block a user