️ Moves host variable below imports

This commit is contained in:
Alicia Sykes 2022-07-07 18:05:34 +01:00 committed by GitHub
parent b4db66f339
commit bd759d63fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,3 @@
const host = process.env.HOST || '0.0.0.0';
const fs = require('fs'); const fs = require('fs');
const util = require('util'); const util = require('util');
const https = require('https'); const https = require('https');
@ -7,6 +5,8 @@ const https = require('https');
const promise = util.promisify; const promise = util.promisify;
const stat = promise(fs.stat); const stat = promise(fs.stat);
const host = process.env.HOST || '0.0.0.0';
const httpsCerts = { const httpsCerts = {
private: process.env.SSL_PRIV_KEY_PATH || '/etc/ssl/certs/dashy-priv.key', 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', public: process.env.SSL_PUB_KEY_PATH || '/etc/ssl/certs/dashy-pub.pem',