File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,8 @@ const BOUNCER_SHACK = config.bouncerShack?config.bouncerShack:10;
28
28
const SERVER_WEBIRC = config . webircPassword ?config . webircPassword :'' ;
29
29
const SERVER_WEBIRCHASHIP = config . webircHashIp ?true :false ;
30
30
const SERVER_WEBIRCPROXY = config . webircProxy ?true :false ;
31
+ const SERVER_TLS_KEY = config . tlsKey ?config . tlsKey :'privkey.pem' ;
32
+ const SERVER_TLS_CERT = config . tlsCert ?config . tlsCert :'fullchain.pem' ;
31
33
const SERVER_PORT = BOUNCER_MODE == 'gateway' ?( config . serverPort ?config . serverPort :0 ) :0 ;
32
34
const INGRESSWEBIRC = config . ingresswebircPassword ?config . ingresswebircPassword :'' ;
33
35
const SERVER = BOUNCER_MODE == 'gateway' ?( config . server ?config . server :'' ) :'' ;
@@ -60,8 +62,8 @@ let doServer;
60
62
let tlsOptions ;
61
63
if ( BOUNCER_PORT . toString ( ) . substr ( 0 , 1 ) == '+' ) {
62
64
tlsOptions = {
63
- key : fs . readFileSync ( "privkey.pem" ) ,
64
- cert : fs . readFileSync ( "fullchain.pem" )
65
+ key : fs . readFileSync ( SERVER_TLS_KEY ) ,
66
+ cert : fs . readFileSync ( SERVER_TLS_CERT )
65
67
} ;
66
68
BOUNCER_PORT = BOUNCER_PORT . substr ( 1 ) ;
67
69
doServer = tls . createServer ;
You can’t perform that action at this time.
0 commit comments