Setting up the Google Drive Redirect URL for N8N on Local AI deployed on the cloud

Hello All
I have deployed the Local AI Stack on a Cloud instance (Following Cole’s YouTube Video), now when I’m trying to set up the Agentic RAG workflow in N8N and setting up the N8N redirect URL I see the following
Now the http://localhost:5678/rest/oauth2-credential/callback can’t be edited, but it won’t work as a redirect URL in my OAuth setup in Google because it cannot reach localhost. And I’m getting the following message


Any idea how I can make it work?

Duplicate to: Localai stack on a VPS and Oauth redirect url - #5 by chrisagon

@ColeMedin did you test this out or know how to change? I dont have a running instance where I can test this on a vps right know.

@adimenia / @leex279 For n8n on localhost, you can just use any other domain you have as the redirect URI when setting up the Google credentials and it will work!

Otherwise you can set up a service like ngrok so you can have an HTTPS tunnel when hosting locally.