Skip to content

Commit

Permalink
adding ability for user to set a custom password
Browse files Browse the repository at this point in the history
  • Loading branch information
thelamer committed Feb 14, 2019
1 parent c8c57cd commit 7cd10c3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 7cd10c3

Please sign in to comment.