Synapse on clearnet

Hi, I am trying to get Synapse working on clearnet.

I successfully configured a domain, HTPPS, and pointed it to the localip:8008 through Cloudflare Tunnel. When opening the URL, I see the “Matrix is running” page you usually get when opening the localip:8008.

Now, I am struggling to get Element to interact with the server over clearnet. Even if I use Element to register a new user (using the https://example.com clearnet address as server address), after registration and login, I see see my username as user@sadfasdfasdfsad.onion.

The problem is that I cannot access any public rooms with the .onion address.

Any ideas how to fix this?

I discussed this with GPT and it suggested amending the homeserver.yaml file in the docker container, which I did, but I was not able to get the server to run afterwards.