Comments (11)
./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.
Yes. How - this is question for nginx stackoverflow section.
from open-ethereum-pool.
Hint: google how to configure subdomains in nginx.
from open-ethereum-pool.
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.
Just try it, I can't parse it in a head :)
from open-ethereum-pool.
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.
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.
Which section sammy? ApiUrl? LeChuckDE you mean modify server.go (api subdir) file in pool source?
from open-ethereum-pool.
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.
Thanks guys for help. Yeah sammy Im running standalone redis instance for that pool. Have a nice day.
from open-ethereum-pool.
@ExEric3 pull latest from develop.
from open-ethereum-pool.
Related Issues (20)
- 承接直接搭建等 技术问题 联系我:ETH/ETC等矿池问题 QQ:290756156 微信号:khpool
- 需要帮助搭建该程序ETH/ETC矿池的联系微信:xserverx
- 有偿找技术帮助我搭建ETH矿池平台 HOT 5
- 搭建ETH ETC矿池1000一次有偿服务
- nope
- Some problems...
- problem HOT 1
- compiling issues HOT 2
- Mining other coin HOT 1
- ask a question HOT 3
- 承接直接搭建等 技术问题 联系我:ETH/ETC等矿池问题 QQ:290756156 微信号:khpool
- Need help with make HOT 2
- Can this be compiled on Windows Server w/ Mingw-w64?
- add go.mod
- Cannot make HOT 1
- Installing ubuntu 20.04 web interface HOT 1
- Doesn't compile.
- Ethereum Fair - Pool Incompatible
- > Spent a couple of days and have open-etbtchereum-pool installed on a server. HOT 1
- CANT WITHDRAW DAILY MINING INCOME-META MASK HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from open-ethereum-pool.