getminera / minera

Minera is a web interface to monitor and manage mining devices
http://getminera.com
Other
372 stars 156 forks source link

minera not designed to load on external networks? #175

Closed jstefanop closed 7 years ago

jstefanop commented 7 years ago

Hey so internally minera works fine, but as soon as I try and access it from an external network, seems like everything is broken. Only a text based login screen loads very slowly, and when putting in password it redirects to internal IP address.

I redirect external traffic from an external port to internal minera IP with NAT Loopback. This works fine for exposing antminers admin page externally, but minera does not seem to like it.

michelem09 commented 7 years ago

I know this issue, but I still have't the time to look at it. The PHP framework doesn't print the correct URL for static files (js, css, etc...) it continues to use the LAN ip instead using the public one. Hope to put my hands on soon.

michelem09 commented 7 years ago

If you are a little skilled, you could try this change:

Edit file /var/www/minera/application/config/config.php

Look at the line $base_url = '' and change it with $base_url = 'http://'.$_SERVER['HTTP_HOST'].'/minera'

Then try

michelem09 commented 7 years ago

This was definitely fixed, just do a pull:

cd /var/www/minera
git pull