OAuth redirect URL is always localhost and cannot be modified

This sounds like you might be running n8n behind a reverse proxy server such as Caddy or nginx. Could you make sure it’s properly configured (Caddy, Nginx) so information from the server reaches the UI?