minernl / Miningcore.WebUI

WebUI made for https://github.com/minernl/miningcore
https://miningcore.com
32 stars 80 forks source link

An API Fix #9

Open TimyIsCool opened 2 years ago

TimyIsCool commented 2 years ago

Change

var API = WebURL + "http:/ip:4000/api/";

to

var API = "http://ip:port/api/";

minershaven commented 2 years ago

I never could get it to work this way or how it was explained in the Readme file. The easiest way to make this work is to create a subdomain api.your-domain.com and then goto your nginx config and put in a proxy pass for that subdomain to port 4000. Once you have that setup goto your miningcore.js file and change it to var api = https://api.your-domain.com/