I’m running n8n in my own server by npm, not using docker. The google OAuth Redirect URL is localhost:5678 and unable to modify.
So after successfully login to google, It tries to redirect to localhost, which is unreachable.
I have tried set environment:
export WEBHOOK_URL=http://your_server_ip_or_domain:5678/
Add configs in config.json:
“scripts”: {
“start”: “WEBHOOK_URL=https://your_server_ip_or_domain:5678/ n8n start”
}
but neither of them works
Do I need to set something in nginx?