I’m doing the Level 2 course (Workflow 2) and I’m stuck on the Discord node step that requires a labelId from the Gmail node.
My setup:
n8n self-hosted in Docker in a home ubuntu server
No public domain, running on local network (192.168.x.x)
Can’t complete Gmail OAuth2 setup because Google doesn’t accept local IPs as redirect URIs
Problem:
The Send Email (SMTP) node works and sends emails correctly, but doesn’t return a labelId field. The Discord message validation requires this exact field.
Question:
Is there a way to get the labelId without Gmail OAuth? Or is there an alternative setup for self-hosted users without a public domain?
I am doing the course from a laptop, so I am accessing a remote server where n8n is hosted.
You need to use ngrok then use the subdomain provided by ngrok to setup the redirect URIs.
This is how you get your “public“ domain
2 Likes
cloudflare tunnel is another option alongside ngrok — it’s free, gives you a persistent https URL that doesnt change on restart, and runs as a single container. for google oauth setup it works the same way, just use the cloudflare domain as your redirect URI in the Google Cloud console.
@Benjamin_Behrens, OP stated
You need your own domain in order to use CF tunneling.
Correct me if I am wrong
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
