Skip to content

armgit / dashy

Public Imported from GitHub
0

πŸš€ A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!

Allow specifying a host on which to listen even with SSL

flechaigb4db66f339a2
diff --git a/services/ssl-server.js b/services/ssl-server.js
index c63b7db3..805434ef 100644
--- a/services/ssl-server.js
+++ b/services/ssl-server.js
@@ -1,3 +1,5 @@
+const host = process.env.HOST || '0.0.0.0';
+
const fs = require('fs');
const util = require('util');
const https = require('https');
@@ -38,7 +40,7 @@ const startSSLServer = (app) => {
key: fs.readFileSync(httpsCerts.private),
cert: fs.readFileSync(httpsCerts.public),
}, app);
- httpsServer.listen(SSLPort, () => { printSuccess(); });
+ httpsServer.listen(SSLPort, host, () => { printSuccess(); });
}
});
};