I have HAProxy set up on a PfSense router. The Nextcloud app is installed in SCALE with port 9001 and a Nextcloud Host option configured as nextcloud.mydomain.com.
I also added nextcloud.mydomain.com to the trusted domains array in config.php
HAProxy is configured with a backend url of nextcloud.mydomain.com and port 9001. It's configured to look on both the LAN and WAN for any domain containing nextcloud.mydomain.com. There's a DNS resolver entry to point nextcloud.mydomain.com to the routers IP address.
When going to nextcloud.mydomain.com, I get the TrueNAS UI, not Nextcloud. I can access the Nextcloud app by using nextcloud.mydomain.com:9001.
I also have Vaultwarden app installed on that TrueNAS box at port 9002. HAProxy works fine for accessing Vaultwarden.
I also added nextcloud.mydomain.com to the trusted domains array in config.php
HAProxy is configured with a backend url of nextcloud.mydomain.com and port 9001. It's configured to look on both the LAN and WAN for any domain containing nextcloud.mydomain.com. There's a DNS resolver entry to point nextcloud.mydomain.com to the routers IP address.
When going to nextcloud.mydomain.com, I get the TrueNAS UI, not Nextcloud. I can access the Nextcloud app by using nextcloud.mydomain.com:9001.
I also have Vaultwarden app installed on that TrueNAS box at port 9002. HAProxy works fine for accessing Vaultwarden.