Find n8n domain instance for self-hosted n8n

Hi there,

First of all, I want to say, great community and great content.
I am trying to access my google accounts using a self-hosted version and I am trying to find the domain of my n8n instance.

How can I allow Google OAuth to authorize my domain?
Sorry for my perhaps newby question.

Thanks for help

Information on your n8n setup

  • n8n version: 1.62.5
  • Database (default: SQLite):google sheet
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app): npm
  • Operating system: Ubuntu

Hey @rubcaspac60

When you go to add a Google credential it should show the oauth redirect url to use, Normally this would need to be https and using your own domain which would be something you would need to configure outside of n8n then once you have DNS in place you can set the WEBHOOK_URL environment variable to the url you have configured for n8n.

Let me know if you have any other questions on this.

1 Like

Hi there and thanks for the answer.
That part I know, but in the documentation it states that I should use n8n.cloud in case of cloud architecture, but I am not sure what to place in that domain for my self-hosted.

I tried https://localhost but is it not the real answer.
I think I am over-complicating this step, but no tutorial give me a direction.

Hey @rubcaspac60,

Which documentation are you following? You should only worry about n8n.cloud if you are using n8n cloud but you mentioned self hosting so that doesn’t matter in this case.

Using https://localhost is likely to fail, Your self hosted domain would be whatever domain you have purchased and configured to point to the IP of the server you have n8n running on. As an example if you purchased the domain rubcaspac60.com and set up a subdomain for automation.rubcaspac60.com and pointed it to your servers IP say 123.123.123.123 then you would need to make sure you set the n8n environment variable WEBHOOK_URL to https://automation.rubcaspac60.com

If you don’t have a domain you could look at using a tunnel service like ngrok or cloudflare instead.

Hi Jon,

I managed to solve it.
Thank you.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.