File tree Expand file tree Collapse file tree 4 files changed +21
-54
lines changed Expand file tree Collapse file tree 4 files changed +21
-54
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
2
2
exports.listenIP = null; //Defaults to *
3
- exports.listenPort = 8081; //the SSL port things run on
4
3
exports.httpListenPort = 8080; //this will all be redirected to SSL
5
- exports.cacheApps = true;
6
- exports.httpVisiblePort = 80; //forwarded http port the user sees
7
- exports.httpsVisiblePort = 443; //forwarded https port the user sees
4
+ exports.httpsListenPort = 8081; //the SSL port things run on
8
5
6
+ exports.httpsVisiblePort = 443; //forwarded https port the user sees, used to redirect from http to https
9
7
10
- //SSL Info
11
- exports.country = "US";
12
- exports.state = "New York";
13
- exports.locale = "New York";
14
- exports.commonName = "coder.local";
15
- exports.subjectAltName = "DNS:192.168.0.1";
8
+ exports.cacheApps = true;
16
9
10
+ //SSL Info
11
+ exports.ssl = {}
12
+ exports.ssl.enable = true
13
+ exports.ssl.country = "US";
14
+ exports.ssl.state = "New York";
15
+ exports.ssl.locale = "New York";
16
+ exports.ssl.commonName = "coder.local";
17
+ exports.ssl.subjectAltName = "DNS:192.168.0.1";
17
18
18
19
//Experimental
19
20
//
@@ -26,3 +27,4 @@ exports.subjectAltName = "DNS:192.168.0.1";
26
27
// originates from the same external IP.
27
28
exports.statusServer = '[yourpingserver].appspot.com';
28
29
exports.enableStatusServer = false;
30
+
Original file line number Diff line number Diff line change 1
1
2
2
exports.listenIP = '127.0.0.1'; //Defaults to *
3
- exports.listenPort = 8081; //the SSL port things run on
4
3
exports.httpListenPort = 8080; //this will all be redirected to SSL
5
- exports.cacheApps = true;
6
- exports.httpVisiblePort = 8080; //forwarded http port the user sees
7
- exports.httpsVisiblePort = 8081; //forwarded https port the user sees
4
+ //exports.httpsListenPort = 8081; //the SSL port things run on
8
5
6
+ //exports.httpsVisiblePort = 443; //forwarded https port the user sees, used to redirect from http to https
9
7
10
- //SSL Info
11
- exports.country = "US";
12
- exports.state = "New York";
13
- exports.locale = "New York";
14
- exports.commonName = "coder.local";
15
- exports.subjectAltName = "DNS:192.168.0.1";
8
+ exports.cacheApps = true;
16
9
10
+ //SSL Info
11
+ exports.ssl = {}
12
+ exports.ssl.enable = false
17
13
18
14
//Experimental
19
15
//
@@ -26,3 +22,4 @@ exports.subjectAltName = "DNS:192.168.0.1";
26
22
// originates from the same external IP.
27
23
exports.statusServer = '[yourpingserver].appspot.com';
28
24
exports.enableStatusServer = false;
25
+
Original file line number Diff line number Diff line change @@ -397,8 +397,8 @@ if (config.ssl.enable)
397
397
398
398
http . createServer ( redirectapp ) . listen ( config . httpListenPort , config . listenIP ) ;
399
399
400
- loadSslCert ( function ( ) {
401
- var server = https . createServer ( { key : privateKey , cert : certificate } , coderapp ) ;
400
+ loadSslCert ( function ( key , cert ) {
401
+ var server = https . createServer ( { key : key , cert : cert } , coderapp ) ;
402
402
server . listen ( config . httpsListenPort , config . listenIP ) ;
403
403
initSocketIO ( server ) ;
404
404
} ) ;
You can’t perform that action at this time.
0 commit comments