We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 91cea46 commit db979d4Copy full SHA for db979d4
1 file changed
src/proxy/index.ts
@@ -3,7 +3,6 @@ import bodyParser from 'body-parser';
3
import http from 'http';
4
import https from 'https';
5
import fs from 'fs';
6
-import path from 'path';
7
import { router } from './routes';
8
import {
9
getAuthorisedList,
@@ -24,8 +23,8 @@ const options = {
24
23
inflate: true,
25
limit: '100000kb',
26
type: '*/*',
27
- key: getTLSEnabled() ? fs.readFileSync(path.join(__dirname, getTLSKeyPemPath())) : undefined,
28
- cert: getTLSEnabled() ? fs.readFileSync(path.join(__dirname, getTLSCertPemPath())) : undefined,
+ key: getTLSEnabled() ? fs.readFileSync(getTLSKeyPemPath()) : undefined,
+ cert: getTLSEnabled() ? fs.readFileSync(getTLSCertPemPath()) : undefined,
29
};
30
31
const proxyPreparations = async () => {
0 commit comments