I'm having problems

help, when logging in after entering the credentials and secret, it throws an error, it happens with everything, google sheets, excel and many more, I don’t know how to solve this problem

Hi @Sebastian_Alejandro

You need to ensure your n8n instance has the WEBHOOK_URL environment variable set to your full public URL.

  • Incorrect: localhost:5678 or just the IP address.
  • Correct: https://n8n.vpscl-1992083.vpshostgator.com

If you are using Docker, add this to your environment section: WEBHOOK_URL=https://n8n.vpscl-1992083.vpshostgator.com

Also, make sure the subdomain is valid

image

I still can’t bro, where do you make the environment change?
I have n8n on hostgator and it’s caused me a lot of problems, but that complicates things for my workflows

For OAuth2 (Google Sheets, Excel, etc.) to work, the “Redirect URI” must be a valid, publicly reachable URL. Because your domain is not resolving to an IP address, the browser fails to load the page after you enter your credentials.

Before changing anything in n8n, you must make the domain actually exist.

  1. Log into your HostGator cPanel/DNS Management​.
  2. Look for Zone Editor or DNS Records​.
  3. You need to add an A Record for the subdomain n8n.
    • Name: n8n.vpscl-1992083.vpshostgator.com (or just n8n depending on the interface).
    • Type: A
    • Value/Address: Enter the Public IP address of your VPS.
  4. Save the record and wait a few minutes (or up to 24 to 72 hours) for it to propagate. You will know it’s working when you can successfully ping that address again.

Once the DNS is fixed, n8n needs to know that this is its official “public face” so it can generate the correct callback URLs for Google and Microsoft.

Depending on how you installed n8n on HostGator, you change the environment variables here:

  • If using Docker (Most Common): Look for your docker-compose.yml file or your .env file. You need to set the WEBHOOK_URL variable:
WEBHOOK_URL=https://n8n.vpscl-1992083.vpshostgator.com/
  • After changing this, you must restart the container: docker-compose up -d.

  • If using npm/Command Line: You need to export the variable before starting n8n:

export WEBHOOK_URL=https://n8n.vpscl-1992083.vpshostgator.com/
n8n start

Thanks a lot bro, I’ll give it a try and let you know if I manage to pull it off.

Hi, it’s me again, I still have problems, I think it’s because the n8n page that I opened from hostgator shows that it’s not secure: as you can see in the image, I still can’t do anything, and I can’t find a solution anywhere

Did you follow my instruction?

What did you do? Write clearly

This is expected. How do you run n8n?

Hi, I managed to do everything you told me to do, but the problem of not being able to connect the accounts I want to connect keeps happening. Also, when I access n8n from Hostgator, it says the page is not secure.

No, you did not. Otherwise I would be seeing this

and not this

image

You still did not answer my question

Without sufficient context, you will always be stuck.
Please follow the instructions exactly and highlight any issues encountered along the way.
Claiming to do “everything” when you did not will not help you