how to set GOTRUE_MAILER_EXTERNAL_HOSTS
Trying to self host latest supabase version I can't send mail with the following error:
{"level":"info","msg":"Request received external host in X-Forwarded-Host or Host headers, but the values have not been added to GOTRUE_MAILER_EXTERNAL_HOSTS and will not be used. To suppress this message add the host, or sanitize the headers before the request reaches Auth.","time":"2025-03-27T00:50:35Z","x_forwarded_host":"mysupabase.hostname","x_forwarded_proto":"http"}
I tried to set the GOTRUE_MAILER_EXTERNAL_HOSTS env var inside the docker-compose.yml but still get this error whatever the value i'm passing in.
Can we please have some guidance on how to set this variable correctly to have invite mails sent ?
Originally posted by @malko in #1228
According to my experience GOTRUE_MAILER_EXTERNAL_HOSTS is correct.
Just make sure to only keep host name in the filed value, http schema should be removed.
@malko I get the same thing when I log in with social networks
Anybody managed to solve this? I am having same problem and tried same resolutions
Anybody managed to solve this? I am having same problem and tried same resolutions
my mistake was configuring the following base url for the gate way which led to that