Skip to content

Commit 5db50c6

Browse files
committed
Remove config.js, leave only samples.
1 parent 0eda02d commit 5db50c6

File tree

4 files changed

+21
-54
lines changed

4 files changed

+21
-54
lines changed

coder-base/config.js

Lines changed: 0 additions & 32 deletions
This file was deleted.

coder-base/config.js.default

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
11

22
exports.listenIP = null; //Defaults to *
3-
exports.listenPort = 8081; //the SSL port things run on
43
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
85

6+
exports.httpsVisiblePort = 443; //forwarded https port the user sees, used to redirect from http to https
97

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;
169

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";
1718

1819
//Experimental
1920
//
@@ -26,3 +27,4 @@ exports.subjectAltName = "DNS:192.168.0.1";
2627
// originates from the same external IP.
2728
exports.statusServer = '[yourpingserver].appspot.com';
2829
exports.enableStatusServer = false;
30+

coder-base/config.js.localhost

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,15 @@
11

22
exports.listenIP = '127.0.0.1'; //Defaults to *
3-
exports.listenPort = 8081; //the SSL port things run on
43
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
85

6+
//exports.httpsVisiblePort = 443; //forwarded https port the user sees, used to redirect from http to https
97

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;
169

10+
//SSL Info
11+
exports.ssl = {}
12+
exports.ssl.enable = false
1713

1814
//Experimental
1915
//
@@ -26,3 +22,4 @@ exports.subjectAltName = "DNS:192.168.0.1";
2622
// originates from the same external IP.
2723
exports.statusServer = '[yourpingserver].appspot.com';
2824
exports.enableStatusServer = false;
25+

coder-base/server.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -397,8 +397,8 @@ if (config.ssl.enable)
397397

398398
http.createServer(redirectapp).listen(config.httpListenPort, config.listenIP);
399399

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);
402402
server.listen(config.httpsListenPort, config.listenIP);
403403
initSocketIO(server);
404404
});

0 commit comments

Comments
 (0)