WORKING 100% by the moment
History:
- Using Unraid dockers
- Install Mariadb with 3306 with X.X.X.25
- Install Nextcloud on 443 with X.X.X.26
- Configure for first time admin and mariaDB connection of nextcloud
- Able to login and work.
- Install SWAG reverse proxy with X.X.X.24 443 and 80. Create NAT rule on PFsense to redirect traffic from WAN any on 80 and 443 to X.X.X.24 to 80 and 443. Also firewall WAn rule
- Create on PFsense a Host override for mynextcloudurl to X.X.X.26. I needed it to resolve internally mynextcloudurl to nextcloud lan IP X.X.X.26
- Modify config.php so trusted domains are X.X.X.26 and mynextcloudurl. Modify overwrite.cli.url to https://mynextcloudurl.
- Modify SWAG nextcloud.subdomain.conf so “server_name yournextcloudsubdomain.*”, “set $upstream_app X.X.X.26;”
- Start the 3 docks and make sure no error on unraid log of each