I’m currently installing Nextcloud‑AIO on a server with a special network topology. The server cannot communicate with itself via its public IP address access works only through localhost or the internal LAN IP. From the outside, however, the connection to the public IP works normally. Additionally, the intermediate network gateway makes hairpin‑NAT impossible.
An FQDN and a valid certificate are available. The problem is that when the web server tries to access itself via the public IP, the connection is routed via the LAN network. This leads to the error and the Nextcloud container does not start.