Comments (5)
use 127.0.0.1:4000/api/
from miningcore.
Take a look at the wiki page for the API.
it's 127.0.0.1:4000/api/pools/...
from miningcore.
Hello,
Thank you everyone for your input.
Because the documentation was pointing to server:4000/api I was lead to believe that /api itself would return values but instead returned a 404 and for some reason, the documented endpoint calls were returning an "internal server error".
I restarted Miningcore a few times and still had the same issue.
Finally I just restarted the whole server last night and like magic the issue went away and api was functioning.
I dont know why i was getting an internal server error since it was a fresh install from about two weeks ago and havent changed anything except for the pool configurations.
I believe the api didnt bind correctly because the port my been used by another resource during launch? idk just speculation...
Anyway thanks for the help, the issue has been resolved.
from miningcore.
It can cause an error or a 404 error if the web server is not configured as a reverse proxy to the api. The miningcore api server is only capable of http communication. If the web interface works on https, port 4000 reverse proxy in nginx configuration (/etc/nginx/sites-enabled/) is required
Example:
server {
root /var/www/yourdomain/html;
index index.html index.htm index.nginx-debian.html;
server_name yourdomain;
location / {
try_files $uri $uri/ =404;
}
location /api/ {
proxy_pass http://127.0.0.1:4000/api/;
}
from miningcore.
Hi,
Thanks for the info. I already have it setup and the website is running.
Thanks!
from miningcore.
Related Issues (20)
- Stratum issue - Connection closed after invalid shares
- New Version Master RELEASE? v.75? HOT 3
- Coins not working and coins no longer online HOT 1
- Errors once in awhile. cant reproduce, its random.
- blocks on the wallet do not come
- CTransaction::CheckTransaction() : founders reward missing HOT 1
- Zephyr is using randomx algo, pool wont accept miners HOT 5
- XMrig miner connecting to Miningcore with error "Unsupported request login", code: 20 [DOGE mining]
- Unknown error. HOT 1
- ASICBOOST Fix HOT 3
- litecoin fix HOT 2
- sharesPerSecond HOT 3
- sha3-256d Invalid hash of the base 58 string HOT 1
- Configuration options. HOT 1
- NGINX problems HOT 16
- submission failed with: invalid & submission failed with: bad-cb-payee HOT 1
- Block found but not recognized by miningcore or api HOT 40
- nexa error HOT 6
- Hashrate and shares not showing up on pool HOT 6
- Hypercash, miningcore compatibility bounty
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 miningcore.