File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ import bodyParser from 'body-parser';
3
3
import http from 'http' ;
4
4
import https from 'https' ;
5
5
import fs from 'fs' ;
6
- import path from 'path' ;
7
6
import { router } from './routes' ;
8
7
import {
9
8
getAuthorisedList ,
@@ -24,8 +23,8 @@ const options = {
24
23
inflate : true ,
25
24
limit : '100000kb' ,
26
25
type : '*/*' ,
27
- key : getTLSEnabled ( ) ? fs . readFileSync ( path . join ( __dirname , getTLSKeyPemPath ( ) ) ) : undefined ,
28
- cert : getTLSEnabled ( ) ? fs . readFileSync ( path . join ( __dirname , getTLSCertPemPath ( ) ) ) : undefined ,
26
+ key : getTLSEnabled ( ) ? fs . readFileSync ( getTLSKeyPemPath ( ) ) : undefined ,
27
+ cert : getTLSEnabled ( ) ? fs . readFileSync ( getTLSCertPemPath ( ) ) : undefined ,
29
28
} ;
30
29
31
30
const proxyPreparations = async ( ) => {
You can’t perform that action at this time.
0 commit comments