Giter Club home page Giter Club logo

Comments (5)

 avatar commented on July 23, 2024 1

use 127.0.0.1:4000/api/

from miningcore.

WantClue avatar WantClue commented on July 23, 2024

Take a look at the wiki page for the API.
it's 127.0.0.1:4000/api/pools/...

image

from miningcore.

M1neK1ng avatar M1neK1ng commented on July 23, 2024

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.

 avatar commented on July 23, 2024

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.

M1neK1ng avatar M1neK1ng commented on July 23, 2024

Hi,
Thanks for the info. I already have it setup and the website is running.
Thanks!

from miningcore.

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.