I hope this message finds you well. I am reaching out for assistance regarding an issue I am facing with my web application that hosts n8n using a Docker image (docker.n8n.io/n8nio/n8n).
The problem I am encountering is related to enabling the credentials for Google APIs (such as Google Drive, Google Calendar, Google chat and Google Sheets). I have already configured everything properly in the Google Cloud Console and set up the client ID and client secret in the authentication settings on Azure.
Despite my efforts, I am unable to activate the Google API credentials within my n8n instance. I would greatly appreciate any guidance or suggestions from anyone who might have faced a similar issue or has experience with n8n and Google API integrations.
In your docker-compose.yml or .env file, make sure the following environment variables are correctly set:
env
N8N_HOST=your-domain.com
N8N_PORT=443
N8N_PROTOCOL=https
WEBHOOK_URL=https://your-domain.com/
Note: If WEBHOOK_URL or N8N_HOST are set incorrectly, the OAuth callback will fail — meaning Google won’t be able to redirect properly back to your n8n instance after login.
Glad that you fixed it, then can you kindly like my answer and if you think that it solves your problem or leads you there, to mark it as the solution thank you