From 7cd10c3635c52509194c320c83480c19635a7c4c Mon Sep 17 00:00:00 2001 From: thelamer Date: Wed, 13 Feb 2019 16:34:27 -0800 Subject: [PATCH] adding ability for user to set a custom password --- index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/index.js b/index.js index ab7a417..1352fd6 100644 --- a/index.js +++ b/index.js @@ -9,6 +9,9 @@ var proxy = httpProxy.createProxyServer(); var ip = process.env.TAISUNIP; var taisunport = process.env.TAISUNPORT; var pass = process.env.DNSKEY; +if(process.env.CUSTOMPASS) { + var pass = process.env.CUSTOMPASS; +} var lecertpath = '/etc/letsencrypt/live/' + process.env.SERVERIP + '/fullchain.pem'; var lekeypath = '/etc/letsencrypt/live/' + process.env.SERVERIP + '/privkey.pem'; var privateKey = fs.readFileSync(lekeypath).toString();