Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into mainnet-rc
Browse files Browse the repository at this point in the history
# Conflicts:
#	src/WebAPI.cpp
  • Loading branch information
madMAx43v3r committed Oct 14, 2024
2 parents 3cd8694 + 97f2ffd commit d999253
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions www/rpc-server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,14 +126,14 @@ setInterval(reset_pending, load_balance_tick);
console.log("Listening on port 80 ...");
}

const cert_path = '/etc/letsencrypt/live/rpc.mmx.network/';
const cert_path = '/root/.acme.sh/rpc.mmx.network_ecc/';

if(fs.existsSync(cert_path))
{
var options = {
key: fs.readFileSync(cert_path + 'privkey.pem'),
cert: fs.readFileSync(cert_path + 'fullchain.pem'),
ca: fs.readFileSync(cert_path + 'chain.pem')
key: fs.readFileSync(cert_path + 'rpc.mmx.network.key'),
cert: fs.readFileSync(cert_path + 'fullchain.cer'),
ca: fs.readFileSync(cert_path + 'ca.cer')
};

https.createServer(options, app).listen(443);
Expand Down

0 comments on commit d999253

Please sign in to comment.