Using cloudflare with rocketchat....redirect loop

If I try to use rocketchat with cloudflare it gets stuck in a redirect loop…
I have my domain on cloudflare.
I own 2 servers, the first server contains my main website, the 2nd server simply has rocketchat on it.
I am using a “A record” for my rocketchat server, on my main domain, so “chat.website.com

I want to continue using cloudflares SSL on my domain, and I want to use cloudflare on “chat.website.com” but if I enable cloudflare on that A record, it throws a redirect loop.

What can I do to resolve this issue?

Things to note
On cloudflare, I have “Always use HTTPS” enabled, as well as automatic HTTPS rewrite

Please help!!

This is being discussed here.

Please stay in one place or it can get very messy trying to answer - most people frequent both areas!