You can't log in as ... from that IP address

I am also using my own template on Nginx as reverse proxy and enabling the Cloudflare template in app.yml works as expected.