Full transparency, I’m a noob.
The Basics
- Nextcloud Server version:
NextCloud AIO 10.0.0
- Operating system and version:
Ubuntu Server 24.04.1
- Reverse proxy
Cloudflare Zero Trust Tunnel
- Installation method
Docker 26.1.3
- Are you using Cloudflare, mod_security, or similar?
Yes, Cloudflare
Summary of the issue you are facing:
I set up a Hetzner VPS and installed Ubuntu Server 24.04. I set up a Cloudflare Tunnel on Cloudflare’s website and used the docker command with the secret key to install it. I then used the docker command to install NextCloud AIO in reverse proxy mode, referring to this guide for both general installation using a proxy as well as specifically for Cloudflare. Looking through Nextcloud’s docs, tutorials, and even ai help, I’ve been told to set the service in Cloudflare for the public hostname configuration as both http and https, as well as using the public ip address, the private machine’s, or localhost/127.0.0.1 with either port 8080 or port 11000. I tried all of these and the only way I could actually get the site to load was by using the public IP with port 8080, but this kinda defeats the purpose. Every other combination I tried led to either ip not found, time outs, http on an https error, or 502 gateway error.
Yes, I referenced this guide, and many YouTube videos.
I confirmed with curl the instance was accessible on local host port 11000, I don’t know why Cloudflare is having such issues.
Can anybody advise how they set it up?