I'm trying to connect to NC by IP within my home network, and by my Cloudflare proxy when away. Something isn't working quite right...
When I'm here at home, I want to connect to my Nextcloud instance by connecting to the IP address of the server, rather than by using the domain name and taking a long path to reach the server that's literally at my feet. I found that I had to add an overwritecondaddr line to make it work.
One problem fixed, another created.
Although I could now connect successfully by IP, whenever I tried to connect to NC through my domain (Cloudflare reverse proxy), I couldn't move from the login screen without reloading the page. This was the case whether I tried from a computer inside or outside my home network.
Next, I experimented with the trusted proxies in config.php.
I added the IP of my Cloudflared instance. Whether this was correct, or I'm just lucky, I can now log in successfully using either the direct IP or the domain name, as long as I'm on my home network.
Logging in from outside the home network remains a problem. I have to enter my login creds, then refresh the page, before I'm on my home NC screen. This is the last part I haven't been able to overcome. Can someone share some advice on possible steps to fix this?