-
Notifications
You must be signed in to change notification settings - Fork 69
Talking To The Outside World
If you wish to change the listening port for Phlex to something other than 80, you can do so in the Xampp control panel by clicking the "config" button next to Apache, and then opening httpd.conf.
In httpd.conf, you will see a line that reads "Listen 80". Change 80 to whichever port you want. Restart apache, and forward to that port. If you are on Windows, you will need to make a rule in Windows Firewall to allow that port's traffic as well.
To change the listening port for *Docker, you can configure the environment variables HTTPPORT and HTTPSPORT - the defaults are 5666 and 5667, respectively.
For an added layer of security, you can enable Phlex to run using SSL Encryption - more commonly known as HTTPS. Doing so is somewhat of an advanced step, but you can find a guide for enabling SSL in XAMPP here.
There are other processes for acquiring a SSL certificate aside from the above, but this goes slightly beyond the scope of this document.
On your home network, visit What's My IP?, and note what it says for "YOUR PUBLIC ADDRESS:". Phlex should be able to determine this automagically, but it's a good thing to know, regardless.
Last, but not least, we need to create a way for Phlex to reach the outside world, and the outside world to reach Phlex.
Again, port forwarding can vary depending on the hardware you're using, but you should stil be able to find a guide that works for the majority of cases here.
Following that guide, you want to make sure you have forwarded port 80 from the INBOUND connection to port 80 (non-docker) or port 5666 (docker) on the internal IP of the computer where Phlex is running. Also, your INBOUND port doesn't HAVE to be port 80/5666 - it can be any free port of your choosing. If you've enabled HTTPS, then be sure to forward port 443 (non-docker) or port 5667 (docker) to 443 (or another port) on your incoming connection.
FINALLY, put it all together. In the Phlex web UI, you will want to go into Settings, and enter your public address and the INBOUND port you forwarded it to in the "public address" field.
So, if What's My IP told you your public address was 104.231.229.108, and you forwarded port 66 to port 80 on phlex, you would put '104.231.229.108:66 as your public address. If there is a subdirectory (/Phlex), be sure to put that on as well - '104.231.229.108:66/Phlex .
Now, you're ready to have some fun.