Wordpress site not connecting to selfhosted matomo behind reverse proxy when SSL is enforced

Hi everyone, I am running the latest build of Matomo 4.5.0 behind nginx reverse proxy with a custom SSL certificate, I have many other services behind the same proxy server and have no issues when forcing https. When I attempt to initiate the connection from my website it fails to connect when https is being forced. When I disable the force https option in the proxy, the connection goes through without issue. Any ideas? Am I missing something in my config? Any help is greatly appreciated!