I have setup a pfSense that runs HA Proxy for other servers.
I’ve setup TrueNAS Scale, with a storage pool and Wordpress as an app.
When I direct HA Proxy to the NAS IP and the port used by Wordpress, it does not reach the site. I changed the web GUI default ports to stop HA Proxy taking me to the NAS logon but now it can’t get to the site at all (externally).
Can anyone advise what needs to be done to get HA Proxy to take an external https to the app, within TrueNAS Scale?
Are you able to get to Wordpress directly by ip and port?
If, for example, your Wordpress instance is at http://192.168.1.30:8080, you’d set that in the backend on HAproxy. Then make sure the dns name you’ve set up is being matched by the front end. You want to make sure the dns record is pointing to HAProxy, not to the Wordpress instance directly.
The only thing that’s different is WP is an app, running on TrueNAS. HA Proxy is pointing to the TrueNAS IP with the WP port.
When I change the IP to a different one, it burst into life. Is there something that needs to be changed to allow HA Proxy to point at TrueNAS apps or could it be something within WP not liking redirected traffic?
I am a little late on this one, but I just wanted to add that I run two public Wordpress websites, one of which is for my wife and her food blog. I run it on a VM in Proxmox, simply because I found the backup and restore process a lot easier than using something like Updraft Plus plugin. I have it set to backup every two hours. My wife is not super experienced with Wordpress and when she makes a mistake, it is a less than 5 minute operation to roll her back to a known working state. Not that doing it with a back up plug in is that hard, but Proxmox is easier and faster IMO. You can probably do something similar with a TrueNAS VM, but I have no experience with that. I run Nextcloud and other software in docker, but Wordpress seems to me to be better off in a VM. Just something to consider.