x25 / coinhive-stratum-mining-proxy

Browser mining on any pool using CoinHive.js library

Repository from Github https://github.comx25/coinhive-stratum-mining-proxyRepository from Github https://github.comx25/coinhive-stratum-mining-proxy

Try to git clone with error permission denied

77656233 opened this issue · comments

$ git clone git@github.com:x25/coinhive-stratum-mining-proxy.git
Cloning into 'coinhive-stratum-mining-proxy'...
Warning: Permanently added the RSA host key for IP address '192.30.253.112' to the list of known hosts.
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

commented

Hello, please try:

$ git clone https://github.com/x25/coinhive-stratum-mining-proxy.git

worked well thank you now try to get it running. Installed on debian vps but hash seems not to work yet.

<script src="https://coin-hive.com/lib/coinhive.min.js"></script> <script> $(function() { CoinHive.CONFIG.WEBSOCKET_SHARDS = [["wss://server:8892//proxy"]]; var miner = new CoinHive.User('41pDKKE56jG6KQnpYC46sD1Ymoe2yQwFE1KhA2oP959Ye6jbNwoJXgMY9tBRjzUP17DYfEP8eomxfMuHhPWkqMDq8S7uRVD', 'name'); }); </script>

Thats how its added to the page. The page loads over https.

And here is the dashboard:

http://server:8892/

Thanks for your help!

python coinhive-stratum-mining-proxy.py xmr-eu1.nanopool.org 14444
2017-10-02 09:31:24+0000 [-] Log opened.
2017-10-02 09:31:24+0000 [-] Site starting on 8892
2017-10-02 09:31:24+0000 [-] Starting factory <twisted.web.server.Site instance at 0x7f4e2cd3d7a0>

Ports are open on server 14444 and 14433 and tried to set both on server and also tried both on website wss and ws.

commented

You are trying to connect to an insecure WebSocket endpoint from https page.
There is two solutions:

  1. Implement TLS: secure WebSocket support in proxy
    https://github.com/crossbario/autobahn-python/tree/master/examples/twisted/websocket/echo_tls
  2. Use your http server to forward https/secure websocket requests to the local proxy port
    https://stackoverflow.com/questions/12102110/nginx-to-reverse-proxy-websockets-and-enable-ssl-wss

Speed = 0.00 hash/sec
Total Hashes = 0

http://212.47.231.81:8892/

Maybe you can check the code and find the problem? There should be no more https problem because server use no and its installed on same server now miner and stratum.

also tried this now:
https://www.npmjs.com/package/coin-hive-stratum
and getting upgrade required message :/

i dont know why but it runs now... thanks for your help