Sooo, I’ve been sitting here for the past bit trying to setup my WebUI so that I can access it externally from the same subdomain that my MC server runs on, using Nginx to proxy web traffic to the MineOS server, so it doesn’t end up going to one of my other sites.
I’ll try and give a comprehensive overview of my setup, and what I’ve tried so far.
I use Nginx in order to send traffic to correct server on my internal network. Currently it proxies three different sites, Gitlab, Subsonic (music/media), and personal site, each running off of their own VM. I would like to add the MineOS WebUI to this list, so I’ll be able to access my WebUI by just going to ftb.example.com
in my browser.
As of right now, I’ve tried creating a vhost for Nginx, that will proxy the data. This is my current configuration, obviously my Nginx host is 192.168.1.50
, and the MineOS server is 192.1.168.1.54
(Running the Turnkey version btw). I copied this configuration from my existing Gitlab server, and modified the necessary parameters, the reason why there are some commands commented out is because I tested the config with just the proxy_pass command, as all I really want is to have ftb.example.com
go to https://192.168.1.54:8443
. Neither works.
So I figured it had something to do with https and/or ports, I changed /etc/mineos.conf
to read use_https = false
and socket_port = 80
. After changing the Nginx config (proxy_pass https://192.168.1.54:8443
--> proxy_pass http://192.168.1.54
), it’s still a no go, opening ftb.example.com
just redirects straight back to example.com
(as it’s listed as the default vhost). Uncommenting all the proxy header commands doesn’t do anything either.
All this leads me to believe I’m either doing something completely stupid, or there’s an issue somewhere in the WebUI (maybe the NodeJS server?). The exact same config file for Nginx works with both Gitlab and Subsonic, so I’ve got no idea why it wouldn’t work for MineOS too.
If you haven’t abandoned ship from the wall of text yet, then thanks! Hopefully the information provided is useful in coming to a solution. Please feel free to let me know if you need any addition information, such as my CloudFlare or PfSense setup, which may also be factors in all this.
Thanks in advance to anyone who is willing/able to help!