Can't log into Home Assistant externally

I have home assistant running on a raspberry pi and I can access it via my local network.

I have Sonarr/Radarr/Tautulli/etc. running on my PC

I have a Synology NAS that does my reverse proxy and have port 443 and 80 forwarded to it in my router.

I have a domain and use Cloudflare (not the HA add-on) for my DNS and SSL certificates. I have Cloudflare’s trusted proxies in my configuration.yaml file

I can access Home Assistant externally via https://homeassistant.mywebsite.com but when I try to log in, I get “Unable to connect to Home Assistant. Retry” (If I input the wrong credentials, I’ll see the warning in the logs)

This happens when I DO NOT have the location of the SSL certificates in configuration.yaml. When I add them in the “http:” portion and test the config, it shows vaild. I try to restart Home Assistant and it never loads back up.

Any help would be greatly appreciated.