I’m trying to get nextcloud running using the mailcow integrated solution . I am running mailcow UI at mail.example.com on port 8443 (everything working great). I setup nexcloud on cloud.example.com. Here’s where my issue starts….
When I go to: https://cloud.example.com:8443/ it redirects to https://cloud.example.com/login (no port number). This gives a connection failed error in the browser. I can manually add the port (https://cloud.example.com:8443/login) and I get the login page and I can login with the admin account created during the nextcloud install. However, this redirects to https://cloud.example.com/apps/dashboard/ (again, no port number) which won’t connect. I can again add the port to the url and it works (I’m logged in on the dashboard page). From there I can navigate through all the settings, add plugins, etc without any issues. When I go to logout, I have the same redirect without port issue.
Based on this, it appears there is a config I need to set/change somewhere so that nextcloud knows the correct URL which includes the :8443 port. How do I do that.