This repository was archived by the owner on Jul 9, 2019. It is now read-only.
File tree 2 files changed +6
-3
lines changed
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ var onReady = require("./on_ready");
4
4
var maybeEnableSSL = require ( "./security/maybe_enable_ssl" ) ;
5
5
6
6
var input = {
7
+ allowNonSecure : true ,
7
8
port : conf . mqttPort ,
8
9
http : { // for teh websockets
9
10
port : conf . httpPort ,
@@ -16,7 +17,9 @@ maybeEnableSSL(input)
16
17
var server = new Server ( input ) ;
17
18
18
19
server . on ( "ready" , onReady ( server ) ) ; //on init it fires up setup()
19
-
20
+ server . on ( "ready" , function ( ) {
21
+ console . dir ( input ) ;
22
+ } ) ;
20
23
var authorizePublish = require ( "./security/authorize_publish" ) ;
21
24
var authorizeSubscribe = require ( "./security/authorize_subscribe" ) ;
22
25
server . authorizePublish = authorizePublish ;
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ var SSL = process.env.SSL_DOMAIN;
2
2
// ALL OF THESE HARDCODED VALUES ARE SET BY LETS ENCTRYPT/
3
3
// CERTBOT. <3 EFF
4
4
var SSL_DIR = `/etc/letsencrypt/live/${ SSL } /` ;
5
- // var SSL_MQTT_PORT = 8883;
5
+ var SSL_MQTT_PORT = 8883 ;
6
6
var HTTPS_PORT = 443 ;
7
7
var SSL_CERT = SSL_DIR + "cert.pem" ;
8
8
var SSL_KEY = SSL_DIR + "privkey.pem" ;
@@ -11,7 +11,7 @@ var log = require("../logger");
11
11
module . exports = function maybeEnableSSL ( config ) {
12
12
if ( SSL ) {
13
13
config . secure = config . secure || { } ;
14
- // config.secure.port = SSL_MQTT_PORT;
14
+ config . secure . port = SSL_MQTT_PORT ;
15
15
config . secure . keyPath = SSL_KEY ;
16
16
config . secure . certPath = SSL_CERT ;
17
17
You can’t perform that action at this time.
0 commit comments