No LAN Access to nextcloud, but external access is fine

most likely you hit different problems.

  • Access to https sites via IP always results in certificate error (IP is never part of TLS cert)
  • you reverse proxy might not accept connection to direct IP (because it only listen to specific domain name)
  • accessing public FQDN from local network might fail because of rebind protection of you router

maybe you find this threads useful