We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5055741 commit cd89717Copy full SHA for cd89717
src/main.ts
@@ -19,10 +19,12 @@ declare const module: any;
19
});
20
await logger.initialize();
21
22
- let httpsOptions = {};
+ console.log('cfg', cfg.application);
23
+
24
+ let extraOptions = <any>{};
25
if (cfg.application?.https?.enabled) {
26
try {
- httpsOptions = {
27
+ extraOptions.httpsOptions = {
28
key: readFileSync(cfg.application?.https?.key),
29
cert: readFileSync(cfg.application?.https?.cert),
30
};
@@ -37,7 +39,7 @@ declare const module: any;
37
39
rawBody: true,
38
40
cors: true,
41
logger,
- httpsOptions,
42
+ ...extraOptions,
43
44
app.use((_: any, res: Response, next: () => void) => {
45
res.removeHeader('x-powered-by');
0 commit comments