Describe the problem/error/question
I have a standard docker self hosted community version of n8n Ver 1.82
running on ubuntu 22.04
dedicated server with no other function.
using DNS it is available as subdomain n8n.mydomain.com
Works great for years
Recently moved it behind Cloudflare by changing hostname to Cloudfalre
use Cloudflare DNS (no proxy) to the subdomain.- everything works
EXCEPT
Now when I try and create a new google credential I have an issue.
Cloudflare does not pass port 5678 through.
My oauth redirect URL is
https://n8n.mydomain.com:5678/rest/oauth2-credential/callback
When i sign in with google to grant access to the app. I get almost to the end and then after displaying what permissions I wish to grant. it then errors out with the
ERR_CONNECTION_REFUSED
this is because Cloudflare is not passing the URI through.
Iām confused because i thought cloudflare in DNS mode only should allow this.
However having exhausted that avenue I wonder how we might configure the N8N oauth uri to be using port 2083 rather than 5678.
What is the error message (if any)?
Please share your workflow
(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)
Share the output returned by the last node
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):
- Operating system: