Self-hosted Reset Password Email template doesn't have the correct link
I'm self-hosting supabase via docker. I'm running supabase/gotrue:2.132.0 (also tried 2.130.0). When I initiate reset password (
This started happening after I upgraded gotrue from 2.40.2 to 2.132.0 (a major bump, I know). I was on the old version for about a year and everything was working. The reset password link working fine just before the upgrade. I've been beating my head for nearly a day now trying to figure out what's happening. I've played with changing
/recover) from my client app, I get the password reset email with the default template, but the "Reset Password" link is http://localhost/auth/v1/verify?token=...&type=recovery&redirect_to=http://localhost:8167/password-reset. The http://localhost/ part is not correct - it is missing the port #. I have API_EXTERNAL_URL set to http://localhost:8000 (8000 is my external port for supabase/kong), but it doesn't seem to be using it. This started happening after I upgraded gotrue from 2.40.2 to 2.132.0 (a major bump, I know). I was on the old version for about a year and everything was working. The reset password link working fine just before the upgrade. I've been beating my head for nearly a day now trying to figure out what's happening. I've played with changing
API_EXTERNAL_URL to things like https://example.com, but the link always comes out http://localhost/.... I've scoured the gotrue source and it looks like it should be using API_EXTERNAL_URL. Any tips would be much appreciated.