Giter Site home page Giter Site logo

Comments (5)

x25 avatar x25 commented on July 23, 2024

Hello, please try:

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

from coinhive-stratum-mining-proxy.

77656233 avatar 77656233 commented on July 23, 2024

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.

from coinhive-stratum-mining-proxy.

x25 avatar x25 commented on July 23, 2024

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

from coinhive-stratum-mining-proxy.

77656233 avatar 77656233 commented on July 23, 2024

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 :/

from coinhive-stratum-mining-proxy.

77656233 avatar 77656233 commented on July 23, 2024

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

from coinhive-stratum-mining-proxy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.