Giter VIP home page Giter VIP logo

Comments (11)

LeChuckDE avatar LeChuckDE commented on July 30, 2024 1
./api/server.go:        r.HandleFunc("/api3/stats", s.StatsIndex)
./api/server.go:        r.HandleFunc("/api3/miners", s.MinersIndex)
./api/server.go:        r.HandleFunc("/api3/blocks", s.BlocksIndex)
./api/server.go:        r.HandleFunc("/api3/payments", s.PaymentsIndex)
./api/server.go:        r.HandleFunc("/api3/accounts/{login:0x[0-9a-fA-F]{40}}", s.AccountIndex)

./www/app/templates/account/index.hbs:    <strong>Your bulk stats JSON API URL:</strong> <a href="/api3/accounts/{{model.login}}">/api/accounts/{{model.login}}</a>
./www/app/routes/blocks.js:    var url = config.APP.ApiUrl + 'api3/blocks';
./www/app/routes/application.js:    var url = config.APP.ApiUrl + 'api3/stats';
./www/app/routes/payments.js:    var url = config.APP.ApiUrl + 'api3/payments';
./www/app/routes/account.js:            var url = config.APP.ApiUrl + 'api3/accounts/' + params.login;
./www/app/routes/miners.js:    var url = config.APP.ApiUrl + 'api3/miners';

In these files you have to change it, recompile both (open-ethereum-pool) and you could also change the database in config file, REDIS comes with 64 empty databases.starting with 0.
In my opinion safest to choose database 1 - X in config

        "redis": {
                "endpoint": "xxxxxxxx",
                "poolSize": 10,
                "database": 1,
                "password": "xxxxxxxxxxxx"
                 }

Will add a Variable in config for that but not today....

from open-ethereum-pool.

sammy007 avatar sammy007 commented on July 30, 2024

Yes. How - this is question for nginx stackoverflow section.

from open-ethereum-pool.

sammy007 avatar sammy007 commented on July 30, 2024

Hint: google how to configure subdomains in nginx.

from open-ethereum-pool.

ExEric3 avatar ExEric3 commented on July 30, 2024

This should work?

upstream api {
server 127.0.0.1:8080;
server 127.0.0.1:8090;
}

server {
listen 0.0.0.0:80;
root /home/erik/shift-pool/www/dist;
index index.html index.htm;

    server_name shf.miners-zone.net;

    location /api {
            proxy_pass http://api;
    }

    location / {
            try_files $uri $uri/ /index.html;
    }

}

server {
listen 0.0.0.0:80;
root /home/erik/shifttest-pool/www/dist;
index index.html index.htm;

    server_name shftest.miners-zone.net;

    location /api {
            proxy_pass http://api;
    }

    location / {
            try_files $uri $uri/ /index.html;
    }

}

from open-ethereum-pool.

sammy007 avatar sammy007 commented on July 30, 2024

Just try it, I can't parse it in a head :)

from open-ethereum-pool.

LeChuckDE avatar LeChuckDE commented on July 30, 2024

will not work ! you have configured round robin at /api ...
Try to modify source to server ap2 at second and so on, do a upstream for /apix and proxy_pass apix
works for me eth,etc and exp on same server (okay its a 16 core.64 GB Xeon highperformance system, wouldn't do that with a vps)

from open-ethereum-pool.

sammy007 avatar sammy007 commented on July 30, 2024

FYI: you don't have to pass api through nginx, you can simply configure environment.js to directly talk with api endpoint of the pool. The original idea behind passing it through nginx is limiting for additional safety which must be configured too but I don't cover it in config example.

from open-ethereum-pool.

ExEric3 avatar ExEric3 commented on July 30, 2024

Which section sammy? ApiUrl? LeChuckDE you mean modify server.go (api subdir) file in pool source?

from open-ethereum-pool.

sammy007 avatar sammy007 commented on July 30, 2024

ApiUrl?

Correct.

Make sure your coin settings in pool config are different, otherwise you will screw your database if all pools for both $ETC & $ETH talk to the same redis instance.

It acts as a namespace.

from open-ethereum-pool.

ExEric3 avatar ExEric3 commented on July 30, 2024

Thanks guys for help. Yeah sammy Im running standalone redis instance for that pool. Have a nice day.

from open-ethereum-pool.

sammy007 avatar sammy007 commented on July 30, 2024

@ExEric3 pull latest from develop.

from open-ethereum-pool.

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.