Domain redirects to local IP using cloudflare on TrueNAS

I’ve found some things out:

  1. No matter what I do, it keeps setting it as the local IP
  2. I found out that TrueNAS Scale sets an environment variable (/etc/environment), particularly the host value on the container configuration. Which sets the env OVERWRITEHOST