Nextcloud and cloudflare tunnel, too many redirects

randomnoob

Cadet
Joined
Aug 7, 2023
Messages
2
I have installed the Nextcloud plugin and attempted to bring it online through a cloudflare tunnel following this guide: https://www.truenas.com/community/t...-cloudflare-tunnel-truenas-core-no-vm.105566/

The tunnel shows as healthy but when I try to access nextcloud through the public domain of my cloudflare tunnel I get a too many redirects error. Internally accessing nextcloud through it's IP address works fine
 

garm

Wizard
Joined
Aug 19, 2017
Messages
1,556
You need to declare the domain in Nextcloud regardless if you use the tunnel or not. Did you do that?

And don’t use the plugin..
 

victort

Guru
Joined
Dec 31, 2021
Messages
973
You also need to specify the HTTP Host Header and Origin Server Name within the tunnel settings to be the same as your domain name used for Nextcloud.

And yeah, don’t use plugins, they are deprecated. My signature has Nextcloud as an installation script that works far better.
 
Last edited:
Top