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!

⚑️ Moves host variable below imports

Alicia Sykesbd759d63fd52
diff --git a/services/ssl-server.js b/services/ssl-server.js
index 805434ef..aee7c284 100644
--- a/services/ssl-server.js
+++ b/services/ssl-server.js
@@ -1,5 +1,3 @@
-const host = process.env.HOST || '0.0.0.0';
-
const fs = require('fs');
const util = require('util');
const https = require('https');
@@ -7,6 +5,8 @@ const https = require('https');
const promise = util.promisify;
const stat = promise(fs.stat);
+const host = process.env.HOST || '0.0.0.0';
+
const httpsCerts = {
private: process.env.SSL_PRIV_KEY_PATH || '/etc/ssl/certs/dashy-priv.key',
public: process.env.SSL_PUB_KEY_PATH || '/etc/ssl/certs/dashy-pub.pem',