Cloudflared Assistance / Advice

Hi there,
I’ve recently starting using Cloudflared to proxy access to a http (via https) service running within docker on my HA running on Debian. I have my dns hosted with Cloudflare.
I recently upgraded my Unifi gateway to a UCG Ultra which only has http access out of the box. I want use Cloudflare to also provide https->http access to my gateway.

HA Host Machine IP (Cloudflared proxy): 192.168.1.178
Gateway Internal IP: 192.168.1.1

I tried adding another proxy via Cloudflared within HA. The proxy and CNAME create / establish no problem.
But when I try to access my gateway via HTTPS I get the following error:

edgeos.something.biz redirected you too many times.

ERR_TOO_MANY_REDIRECTS.

I’m sure I completely off the mark in my approach and I’m being overly simplistic in my thinking.
Any help greatly appreciated.

I’m also looking at this post which is essentially what I want to achieve, but it’s all done entirely in the gateway.

Question:
Am I being overly optimistic in my initial attempt? any guidance gratefully accepted.

Alternatively, am I best to implement what’s in the ucg-ultra-clouflare.md post?

Thank you in advance,

1 Like