chore: rename proxy variable to CLOUDFLARE_PROXY_URL
Browse files- .env.example +1 -1
- OUTBOUND_PROXY_GUIDE.md +1 -1
- README.md +2 -2
- outbound-fix.js +1 -1
- outbound-proxy-worker.js +1 -1
.env.example
CHANGED
|
@@ -40,7 +40,7 @@ N8N_LOG_LEVEL=error
|
|
| 40 |
# NETWORK — Outbound Proxy (Bypass HF Blocks)
|
| 41 |
# -----------------------------------------------------------------------------
|
| 42 |
# Your Cloudflare Worker URL (e.g. h8n-proxy.somrat.workers.dev)
|
| 43 |
-
|
| 44 |
# Comma-separated list of domains to proxy. Use "*" to proxy everything.
|
| 45 |
OUTBOUND_PROXY_DOMAINS=api.telegram.org,discord.com,discordapp.com
|
| 46 |
# BUILD-TIME VARIABLE (HF Spaces: add as Variable, not Secret)
|
|
|
|
| 40 |
# NETWORK — Outbound Proxy (Bypass HF Blocks)
|
| 41 |
# -----------------------------------------------------------------------------
|
| 42 |
# Your Cloudflare Worker URL (e.g. h8n-proxy.somrat.workers.dev)
|
| 43 |
+
CLOUDFLARE_PROXY_URL=
|
| 44 |
# Comma-separated list of domains to proxy. Use "*" to proxy everything.
|
| 45 |
OUTBOUND_PROXY_DOMAINS=api.telegram.org,discord.com,discordapp.com
|
| 46 |
# BUILD-TIME VARIABLE (HF Spaces: add as Variable, not Secret)
|
OUTBOUND_PROXY_GUIDE.md
CHANGED
|
@@ -21,7 +21,7 @@ Hugging8n includes a built-in **Transparent Outbound Proxy** that allows you to
|
|
| 21 |
|
| 22 |
Go to your Space **Settings** -> **Variables** and add:
|
| 23 |
|
| 24 |
-
1. **`
|
| 25 |
- Value: `h8n-proxy.yourname.workers.dev` (You can omit the `https://`).
|
| 26 |
|
| 27 |
2. **`OUTBOUND_PROXY_DOMAINS`** (Optional):
|
|
|
|
| 21 |
|
| 22 |
Go to your Space **Settings** -> **Variables** and add:
|
| 23 |
|
| 24 |
+
1. **`CLOUDFLARE_PROXY_URL`**:
|
| 25 |
- Value: `h8n-proxy.yourname.workers.dev` (You can omit the `https://`).
|
| 26 |
|
| 27 |
2. **`OUTBOUND_PROXY_DOMAINS`** (Optional):
|
README.md
CHANGED
|
@@ -10,7 +10,7 @@ license: mit
|
|
| 10 |
secrets:
|
| 11 |
- name: HF_TOKEN
|
| 12 |
description: HuggingFace token with write access (Settings > Tokens). Used for automatic backup.
|
| 13 |
-
- name:
|
| 14 |
description: Your Cloudflare Worker URL to bypass platform blocks (Telegram/Discord).
|
| 15 |
---
|
| 16 |
|
|
@@ -55,7 +55,7 @@ You can customize Hugging8n using Environment Variables (Settings > Variables):
|
|
| 55 |
| `SYNC_INTERVAL` | `180` | Backup frequency in seconds. |
|
| 56 |
| `GENERIC_TIMEZONE` | `UTC` | Timezone for n8n. |
|
| 57 |
| `N8N_LOG_LEVEL` | `error` | Set to `info` for more verbose logs. |
|
| 58 |
-
| `
|
| 59 |
| `OUTBOUND_PROXY_DOMAINS` | (default) | Comma-separated list of domains to proxy. Use `*` to proxy everything. |
|
| 60 |
| `SPACE_HOST_OVERRIDE` | - | Override the detected host if using a custom domain. |
|
| 61 |
|
|
|
|
| 10 |
secrets:
|
| 11 |
- name: HF_TOKEN
|
| 12 |
description: HuggingFace token with write access (Settings > Tokens). Used for automatic backup.
|
| 13 |
+
- name: CLOUDFLARE_PROXY_URL
|
| 14 |
description: Your Cloudflare Worker URL to bypass platform blocks (Telegram/Discord).
|
| 15 |
---
|
| 16 |
|
|
|
|
| 55 |
| `SYNC_INTERVAL` | `180` | Backup frequency in seconds. |
|
| 56 |
| `GENERIC_TIMEZONE` | `UTC` | Timezone for n8n. |
|
| 57 |
| `N8N_LOG_LEVEL` | `error` | Set to `info` for more verbose logs. |
|
| 58 |
+
| `CLOUDFLARE_PROXY_URL` | - | Your Cloudflare Worker URL (to bypass Discord/Telegram blocks). |
|
| 59 |
| `OUTBOUND_PROXY_DOMAINS` | (default) | Comma-separated list of domains to proxy. Use `*` to proxy everything. |
|
| 60 |
| `SPACE_HOST_OVERRIDE` | - | Override the detected host if using a custom domain. |
|
| 61 |
|
outbound-fix.js
CHANGED
|
@@ -9,7 +9,7 @@
|
|
| 9 |
const https = require("https");
|
| 10 |
const http = require("http");
|
| 11 |
|
| 12 |
-
let PROXY_URL = process.env.OUTBOUND_PROXY_URL;
|
| 13 |
if (PROXY_URL && !PROXY_URL.startsWith("http://") && !PROXY_URL.startsWith("https://")) {
|
| 14 |
PROXY_URL = `https://${PROXY_URL}`;
|
| 15 |
}
|
|
|
|
| 9 |
const https = require("https");
|
| 10 |
const http = require("http");
|
| 11 |
|
| 12 |
+
let PROXY_URL = process.env.CLOUDFLARE_PROXY_URL || process.env.OUTBOUND_PROXY_URL;
|
| 13 |
if (PROXY_URL && !PROXY_URL.startsWith("http://") && !PROXY_URL.startsWith("https://")) {
|
| 14 |
PROXY_URL = `https://${PROXY_URL}`;
|
| 15 |
}
|
outbound-proxy-worker.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
| 4 |
* Deployment:
|
| 5 |
* 1. Go to dash.cloudflare.com -> Workers & Pages -> Create Worker.
|
| 6 |
* 2. Paste this code and deploy.
|
| 7 |
-
* 3. Use your worker URL (e.g., https://my-proxy.workers.dev) as
|
| 8 |
*
|
| 9 |
* This worker reads the 'x-target-host' header to determine where to forward the request.
|
| 10 |
*/
|
|
|
|
| 4 |
* Deployment:
|
| 5 |
* 1. Go to dash.cloudflare.com -> Workers & Pages -> Create Worker.
|
| 6 |
* 2. Paste this code and deploy.
|
| 7 |
+
* 3. Use your worker URL (e.g., https://my-proxy.workers.dev) as CLOUDFLARE_PROXY_URL.
|
| 8 |
*
|
| 9 |
* This worker reads the 'x-target-host' header to determine where to forward the request.
|
| 10 |
*/
|