Home Assistant access through cloudflare

Found a similar issue, link here then realized that it was a few months old so posted a new topic.

I am doing a fresh install of Home Assistant (Truenas stable). I have access internally and HA is mostly configured with my devices and automations. I was using traefik before (Truecharts) and had a trusted_proxies entry; but I want to use just cloudflare only with the new install.
I am getting bad gateway 505 error without the trusted_proxies entry.
Trusted proxies is not working for me with error messages in HA.

I am trying to figure out if I need trusted proxies and

a) where do you get the trusted_proxies address - The one I used for Truecharts with traefik does not work

b) I am getting the following error warnings when I add the trusted proxies configuration.yaml lines added:
Integration error:use_x-forwarded_for - Integration ‘use_x-forwarded_for’ not found.
Integration error: trusted_proxies - Integration ‘trusted_proxies’ not found.

Home Assistant 2025.1.4 Version 1.4.18
ElectricEel-24.10.2

My old trusted proxies lines that worked in configuration.yaml before upgrading to electric eel and Truenas Scale (vs truecharts) were:
http:
use_x_forwarded_for: true
trusted_proxies:
- 172.16.0.0/16

Thanks in advance,
Jeff

Brought up Portainer and it has a Networks section. For the Home Assistant install it has IPV4 IPAM Subnet of 172.16.3.0/24; Also tried specific IPV4 IPAM gateway of 172.16.3.1. however when I changed the trusted proxies to either of these addresses it hung deploying

http:
use_x-forwarded_for: true
trusted_proxies:

  • 172.16.3.0/24

Log shows
[31m2025-01-30 15:44:44.787 ERROR (MainThread) [homeassistant.setup] Setup failed for ‘webhook’: Could not setup dependencies: httpe[0m

2025-01-30 23:44:44.789773+00:00e[31m2025-01-30 15:44:44.787 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of ‘cloud’. Setup failed for dependencies: [‘auth’, ‘http’, ‘repairs’, ‘webhook’]e[0m