Nextcloud url keeps redirecting to Truenas server

Hello Nextcloud Community!
I recently set up my own Nextcloud Server on Truenas Scale, both of which I am fairly new to but am so far really liking. One issue I am having though is that whenever I try to access my Nextcloud server in my browser (by entering the ip address for my Truenas Server, then the port number for my Nextcloud server), it redirects me to the web interface for my Truenas server. I can still access my Nextcloud server by clicking on the web portal button for Nextcloud in my Truenas apps, but I would like to know how I can fix this issue. This issue is not present whenever I try to access my Jellyfin server, so I think it may be specific to Nextcloud. I should also mention that I do not have a domain name for my Nextcloud server as I was planning on using a Wireguard connection to access my server remotely.

I don’t use Scale but Core however every app that is installed runs with a dedicated IP, not sharing with the NAS itself.

When clicking on the button in TrueNAS, are you 100% sure it is the same IP as when you enter it manually?

Yes, it is the same IP as when I enter manually. I just discovered though that when I type https (instead of http) in front of the IP it goes directly to the Nextcloud server.

Hello,

Use Contigo / Private browsing mode to access your NextCloud page

Is that working?

Thanks.

Any further discussion about this is going to relate to Truenas or general networking, especially if you are deploying Nextcloud through Truenas app system.

Truenas community support is at https://forums.truenas.com/

  • you can link a post there back to here as a url.
  • Try searching and asking Truenas. Don’t forget to consult their documentation

Example, I’m able to access any truenas app with no problem, but I’m also not trying to do it by IP address.

  • A local DNS Server setup will address IP issues. It is basically required for this sort of setup, sorry it is a whole other topic. I recommend looking into Pi-hole or Adguard Home.
  • You’ll want to sort out https since truenas will otherwise drop the app to http. Consider using Tailscale or Wireguard (from Truenas appstore) to access your apps and data securely from anywhere.

Good luck.

You can fix that by checking the option “Use different port for URL rewrites” and setting this new port to be the same as your WebUI port (eg. 30037)