-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HTTPS API !!! #20
Comments
Hi Xiaolin The screenshot config is similar to mine I only get the websit url to https after installing ssl etc ... but api still stating Please try again later. meanwhile when I visit http the warning disappears and the pool api works am on ubuntu 22.04 |
Could share your config .json api section perhaps am missing something there !! |
Hi Xiaolin your NGINX config doesn't do ssl termination it works only with the http protocol not tcp see "oliverw#232" some how there should be away to enable https on the api to make pool ui view pools on https pool link |
Make sure your ip and api port are correct. |
After the nginx settings, the api path must be rewritten in the webui "miningcore.js", and the port number must be omitted . |
|
That's how mine works |
I did exactly what you suggested and it never works the only deference is that am using subdomain |
I'm using same configs I never got it to work every time I install ssl etc I got the pool maintenance massage |
Only the api works on a subdomain, or the pool as well. |
My test pool work on lan and here the configurations: (pool.json) "api": {
|
Thank you but I never got to work I will just stick with http version |
I believe the hidden enemy most are unaware of is browser cache. Delete all browser cache for your yourdomain.com. As others mentioned, in miningcore.js set Var api to https://yourdomain.com/api and webiste url to https://yourdomain.com/ If you try and access the site via localhost/127.0.0.1/ or local ip eq 192.168.0.10, it will not work, unless those are specifically referenced in the miningcore.js which would never work externally. It will only work by first accessing https://yourdomain.com. The trick is, once you have successfully viewed it on yourdomain.com, your browser cache will now allow you to view it from the local addresses mentioned above. While the one line directives mentioned above for proxy pass should work, I add a few more lines:
Also, if using nginx on linux, I find the sites-enabled default.conf etc can cause lots of problems if new to nginx. Simply access nginx.conf and comment the line out which enables those somewhere at the top and enter all your settings directly in nginx.conf. |
Thank you very much |
you have to have proxy pass setup on your webserver |
I already tried never got to work I don't know what am missing I tried all the previous steps |
Hi Xiaolin ))
I would really really appreciate it if you tell me how I can enable https I am so stuck been trying to make it work for couple of days
I already applied this "https://miguelabate.com/nginx-ssl-reverse-proxy/"
did not work I tried haproxy as well could not make it work
could you just copy past your configs !!
Thank you very much for your contribution to this project
The text was updated successfully, but these errors were encountered: