I am setting up OAuth authentication for the Gmail API using n8n on a Runtipi install on a VPS Ubuntu server. However, the ‘OAuth Redirect URL’ generated does not include the HTTPS protocol, which is a requirement by Google for authentication purposes. My server is properly configured to use HTTPS. Could anyone guide me on how to get n8n to generate a redirect URL with HTTPS?
## Share the output returned by the last node
<!-- If you need help with data transformations, please also share your expected output. -->
## Information on your n8n setup
- **n8n version:**
- **Database (default: SQLite):**
- **n8n EXECUTIONS_PROCESS setting (default: own, main):**
- **Running n8n via (Docker, npm, n8n cloud, desktop app):runtipi
- **Operating system:**
My server is properly configured to use HTTPS. Could anyone guide me on how to get n8n to generate a redirect URL with HTTPS?
By best guess is that the WEBHOOK_URLenvironment variable on your system does not include the https protocol. Despite the name, this environment variable is not only used to build the webhook URLs shown in the n8n UI, but also to set the OAuth2 redirect target.
So perhaps in a first step you can try updating this variable, then re-try the authentication flow?