z-classic / z-nomp

z-nomp is mining pool software for Zcash and Zclassic so you can create internet money in your home!
MIT License
287 stars 441 forks source link

Acknowledge TLS ports has TLS on the front-end #125

Open WaveringAna opened 7 years ago

ghostnegotiator commented 7 years ago

I'll have a look at in in a seccond...

ghostnegotiator commented 7 years ago

Error produced:

Upgrade/Upgrade steps:

rm -r node_modules
git pull
git checkout master
npm install
TypeError: Cannot read property 'key' of undefined
    at new module.exports (/home/redacted/z-nomp/libs/website.js:336:67)
    at Object.<anonymous> (/home/redacted/z-nomp/init.js:80:13)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.runMain (module.js:605:10)
    at run (bootstrap_node.js:423:7)
    at startup (bootstrap_node.js:147:9)
ghostnegotiator commented 7 years ago

After some tweaking its confirmed working & in production at https://zpool.it

Apache 2.4.10 Config:

<VirtualHost *:80>
    ServerAdmin redacted@redacted.com
    ServerName zpool.it
    ServerAlias www.zpool.it

    Redirect permanent / https://zpool.it
</VirtualHost>

<VirtualHost *:443>
    ServerAdmin redacted@redacted.com
    ServerName zpool.it
    ServerAlias www.zpool.it

    SSLProxyEngine on
    SSLProxyVerify none
    SSLProxyCheckPeerCN off
    SSLProxyCheckPeerName off
    SSLProxyCheckPeerExpire off

    ProxyPass / https://0.0.0.0:8080/
    ProxyPassReverse / https://0.0.0.0:8080/

...

It does require some more tweaking but this works for now 👍

WaveringAna commented 7 years ago

What I meant is that the frontend doesnt say if ports have TLS or not

ghostnegotiator commented 7 years ago

Frontend still loads insecure resources.