Having issues with reverse proxies and cloudflare htps

Looking at this thread from last year, this seems to be the same issue: