Using Cloudflared service with Nextcloud

Nextcloud version (eg, 20.0.5): 24.0.4
Operating system and version (eg, Ubuntu 20.04): Dietpi
Apache or nginx version (eg, Apache 2.4.25): nginx/1.18.0
PHP version (eg, 7.4): PHP 7.4.30

I am installed Nextcloud to my Raspberry Pi 4 with DietpiOS. It’s works great on localhost/nextcloud. I want to use Cloudflared tunnels with my apps for remote access. I have completed tunnel operations in other applications. I cannot configure it because Nextcloud works on the path, not the port.

What would be the solution for this?


You may try to use a virtualhost listening on your targetted port, and redirecting to your Nextcloud path througt a proxypassreverse directive.