mirror of
https://github.com/Lissy93/dashy.git
synced 2024-09-11 14:17:02 +03:00
⚡️ Moves host variable below imports
This commit is contained in:
parent
b4db66f339
commit
bd759d63fd
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user