NGINX Home Assistant SSL proxy & Cloudflare

Hi All

After spending way to long researching this (or at least trying to) I am reaching out for some guidance.

I have NGINX Home Assistant SSL proxy addon running and now also use a cloudflare tunnel (instead of having an open 443 port) its all set up and working correctly with no issues, however as I understand it the current line in my config will currently not function.

ip_ban_enabled: true

I understand that I need to modify the NGINX addon in someway to allow the real IP address to be shown in order for ip_ban to function correctly - which makes perfect sense.

However I am unable to find any instructions and/or idiots guide on how to do this.
Any help appreciated as always.