Cloudflare worker for n8n proxy
You need a paid Worker plan ($5 USD) for this service due to the queue. Requirements:
- A cloudflare domain
cloudflare -> cloudflare worker -> n8n
npm install -g wrangler pnpm
pnpm install
wrangler login
cp wrangler.toml_example wrangler.toml
- Change everywhere
example.com
to your domain
wrangler queues create cf-n8n-proxy-production -e production
wrangler queues create dlq-cf-n8n-proxy-production -e production
wrangler kv:namespace create cf-n8n-proxy
- Replace
<mykvid>
with the response ID in the wrangler.toml file. - Change
DEDUPLICATION=false
toDEDUPLICATION=true
in the wrangler.toml file. DEDUPLICATION_TTL
is optional; by default, it is set to 60 seconds.
wrangler deploy -e production
wrangler dev