Comments (9)
// API host and port
ApiUrl: '//example.net/',
Browser will try to connect to ApiUrl. So you must specify external IP or domain name. If you configured nginx properly, set ApiUrl to htttp://masterminging.net
if you didn't configure it use htttp://masterminging.net:8080
(8080 is default port).
from open-ethereum-pool.
Ok thanks for information. But i have tested 4 hour yesterday and it wouldn't work. Everything work at localhost i can open web page correct also mining ports are good and i was able to connect miners form around the world.
But the fronted of website from external IP or mobile phone gives me every time Stats API Temporarily Down!
I do start geth with this options
geth --rpc --rpccorsdomain "mastermining.net:8080" --unlock f9a0cf1236ccafdf2beaace1513ede46bc4f0f79
and then start pool with this
./ether-pool config.json
Here are my settings.
For nginx site-available::
upstream api {
server mastermining.net:8080;
}
server {
listen 0.0.0.0:80;
root /home/virtual1/open-ethereum-pool/www/dist/;
index index.html index.htm;
server_name localhost;
location /api {
proxy_pass http://api;
}
location / {
try_files $uri $uri/ /index.html;
}
}
Here are my settings.
And for open ethereum conf::
{
"threads": 5,
"coin": "eth",
"name": "main",
"proxy": {
"enabled": true,
"listen": "mastermining.net:8888",
"limitHeadersSize": 1024,
"limitBodySize": 256,
"behindReverseProxy": false,
"blockRefreshInterval": "120ms",
"stateUpdateInterval": "3s",
"difficulty": 1000000000,
"hashrateExpiration": "3h",
"healthCheck": true,
"maxFails": 100,
"stratum": {
"enabled": true,
"listen": "mastermining.net:8008",
"timeout": "120s",
"maxConn": 8192
},
"policy": {
"workers": 2000,
"resetInterval": "60m",
"refreshInterval": "1m",
"banning": {
"enabled": false,
"ipset": "blacklist",
"timeout": 1800,
"invalidPercent": 30,
"checkThreshold": 30,
"malformedLimit": 5
},
"limits": {
"enabled": false,
"limit": 30,
"grace": "5m",
"limitJump": 10
}
}
},
"api": {
"enabled": true,
"purgeOnly": false,
"purgeInterval": "10m",
"listen": "mastermining.net:8080",
"statsCollectInterval": "5s",
"hashrateWindow": "30m",
"hashrateLargeWindow": "3h",
"payments": 30,
"blocks": 50
},
"upstreamCheckInterval": "5s",
"upstream": [
{
"name": "main",
"url": "http://127.0.0.1:8545",
"timeout": "10s"
},
{
"name": "backup",
"url": "http://127.0.0.2:8545",
"timeout": "10s"
}
],
"redis": {
"endpoint": "127.0.0.1:6379",
"poolSize": 10,
"database": 0,
"password": ""
},
"unlocker": {
"enabled": false,
"poolFee": 1.0,
"poolFeeAddress": "0xf9a0cf1236ccafdf2beaace1513ede46bc4f0f79",
"donate": true,
"depth": 120,
"immatureDepth": 20,
"interval": "10m",
"daemon": "http://mastermining.net:8545",
"timeout": "10s"
},
"payouts": {
"enabled": true,
"requirePeers": 8,
"interval": "2m",
"daemon": "http://127.0.0.1:8545",
"timeout": "10s",
"address": "0xf9a0cf1236ccafdf2beaace1513ede46bc4f0f79",
"gas": "210000",
"gasPrice": "50000000000",
"autoGas": true,
"threshold": 500000000,
"bgsave": false
},
"newrelicEnabled": false,
"newrelicName": "MyEtherProxy",
"newrelicKey": "SECRET_KEY",
"newrelicVerbose": false
}
AND MY ENVIROMENT.JS::
/* jshint node: true */
module.exports = function(environment) {
var ENV = {
modulePrefix: 'pool',
environment: environment,
baseURL: '/',
locationType: 'hash',
EmberENV: {
FEATURES: {
// Here you can enable experimental features on an ember canary build
// e.g. 'with-controller': true
}
},
APP: {
// API host and port
ApiUrl: 'mastermining.net:8080/',
// HTTP mining endpoint
HttpHost: 'http://mastermining.net',
HttpPort: 8888,
// Stratum mining endpoint
StratumHost: 'mastermining.net',
StratumPort: 8008,
// Fee and payout details
PoolFee: '1%',
PayoutThreshold: '1.1 Ether',
// For network hashrate (change for your favourite fork)
BlockTime: 14.4
}
};
if (environment === 'development') {
/* Override ApiUrl just for development, while you are customizing
frontend markup and css theme on your workstation.
*/
ENV.APP.ApiUrl = 'http://mastermining.net:8080/'
// ENV.APP.LOG_RESOLVER = true;
// ENV.APP.LOG_ACTIVE_GENERATION = true;
// ENV.APP.LOG_TRANSITIONS = true;
// ENV.APP.LOG_TRANSITIONS_INTERNAL = true;
// ENV.APP.LOG_VIEW_LOOKUPS = true;
}
if (environment === 'test') {
// Testem prefers this...
ENV.baseURL = '/';
ENV.locationType = 'none';
// keep test console output quieter
ENV.APP.LOG_ACTIVE_GENERATION = false;
ENV.APP.LOG_VIEW_LOOKUPS = false;
ENV.APP.rootElement = '#ember-testing';
}
if (environment === 'production') {
}
return ENV;
};
Please help me
from open-ethereum-pool.
@Merratzz let's go to https://gitter.im/sammy007/open-ethereum-pool to discuss this issue. There are many people there had this experience before.
from open-ethereum-pool.
@Merratzz are you sure you ran build.sh again after changing your IP/domain in /www/config/environment.js?
from open-ethereum-pool.
ok thank you for help now it works --> Show here http://mastermining.net . I have do a fresh install settings and then change only /environment.js to mastermining.net with rebuild build.sh in /www. Thanks a lot for your help ;-)
from open-ethereum-pool.
@Merratzz can explain my few points please. i want to use my domain too.
First i follow all steps untill i install nginx then should i run geth first to run my pool?
after that once its done which file should i change first before build.sh
please tell me thanks i can pay too if you are not free.
thanks
from open-ethereum-pool.
So i have been looking at these forums for the last couple days trying to find a solution for this API stats and see a lot of people post their config files and then later just post......"I fixed it." Why can't we explain what we did to fix the issue rather than a generic "fixed it" comment.
from open-ethereum-pool.
I have now set up a couple of these and learned a lot while doing it.
One thing I have found for anyone struggling with this API stats down message while broadcasting through EMBER client. While editing environment.js change the section it talks about in the //api section and then scroll down to the "development" section towards the bottom. Where it says "http://localhost:8080" change that to your local ip address for the server.
from open-ethereum-pool.
who does not know the solution to this problem
all the Internet the same answers but the result is exactly zero
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.