cubedro / eth-netstats

Ethereum Network Stats
https://ethstats.net/
GNU General Public License v3.0
854 stars 539 forks source link

How can I install self-signed SSL in eth-netstats? So I can run fronted with HTTPS. #340

Open akshayp-blockarmour opened 5 years ago

akshayp-blockarmour commented 5 years ago

Please help me with that... I added the self-signed certificate in an app.js file. But I am not getting the data. server = https.createServer({ key: fs.readFileSync('./keys/newCore.key.pem'), cert: fs.readFileSync('./keys/newcertificate.cert.pem'), passphrase: password, ca: fs.readFileSync('./keys/ca-chain.cert.pem'), requestCert: true, rejectUnauthorized: false, }, app);

I can see the dashboard in the frontend, but not getting the ethereum node values and block count.

MANOJKUMARCH commented 5 years ago

Hi, I have a similar issue. I am working on a linux VM, and so using self signed ssl, I configured nginx and have set a proxy for eth-nsetstats app. In this way I was able to check the details on web using https.

akshayp-blockarmour commented 5 years ago

Thanks for the reply. Yes, I did the same thing to make https. I put SSL block in Nginx server to work eth-net stats as an https.