mirror of
https://github.com/therealaleph/MasterHttpRelayVPN-RUST.git
synced 2026-05-17 21:24:48 +03:00
c12ffd4dd4
The val.town founder asked us not to promote using their service. This commit removes every val.town reference from the codebase and rewrites the exit-node guides to be platform-agnostic. Changes: - Renamed assets/exit_node/valtown.ts → assets/exit_node/exit_node.ts. TypeScript itself is unchanged — same web-standard Request/Response/ fetch API that runs on any serverless runtime. - Rewrote assets/exit_node/README.md and README.fa.md to recommend Deno Deploy as the primary host for users who want a free serverless TS endpoint, with fly.io and your-own-VPS as alternatives. CF Workers is explicitly called out as not-helpful (CF outbound is still on CF's flagged IP space). - Updated all val.town mentions in source comments (src/config.rs, src/domain_fronter.rs, src/bin/ui.rs) to neutral wording. - Updated config.exit-node.example.json `_comment` strings and the example URL. - Updated main README.md FAQ entries (Persian + English) and docs/guide.md / docs/guide.fa.md. - Old changelog files (v1.9.4 / v1.9.5 / v1.9.9) had val.town mentions retroactively replaced too — same redaction principle. - Bumped to v1.9.10 with a changelog noting the rename + Telegram channel brief format from earlier today. Users who already have an exit node deployed (on whichever host they picked) don't need to change anything — the wire protocol is identical and the renamed script is byte-identical to the old one. Tests: 179 lib + 35 tunnel-node green. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
36 lines
1.6 KiB
JSON
36 lines
1.6 KiB
JSON
{
|
|
"_comment": "Example config for using mhrv-rs with an exit-node deployment to bypass Cloudflare anti-bot blocks on chatgpt.com / claude.ai / grok.com / x.com. See assets/exit_node/README.md for the deployment walkthrough.",
|
|
"mode": "apps_script",
|
|
"google_ip": "216.239.38.120",
|
|
"front_domain": "www.google.com",
|
|
"auth_key": "PUT_YOUR_APPS_SCRIPT_AUTH_KEY_HERE",
|
|
"script_id": [
|
|
"PUT_YOUR_APPS_SCRIPT_DEPLOYMENT_ID_HERE"
|
|
],
|
|
"listen_host": "0.0.0.0",
|
|
"listen_port": 8085,
|
|
"socks5_port": 8086,
|
|
"log_level": "info",
|
|
"verify_ssl": true,
|
|
"exit_node": {
|
|
"_comment": "Master switch. Set false to disable exit-node entirely without removing the config. Default false.",
|
|
"enabled": true,
|
|
"_comment_relay_url": "Public URL of your deployed exit-node handler (assets/exit_node/exit_node.ts running on Deno Deploy, fly.io, your own VPS, etc.).",
|
|
"relay_url": "https://your-deployed-exit-node.example.com",
|
|
"_comment_psk": "Pre-shared key — must match the PSK constant in your deployed source. Generate with: openssl rand -hex 32",
|
|
"psk": "PUT_YOUR_EXIT_NODE_PSK_HERE",
|
|
"_comment_mode": "selective: only `hosts` route via exit node (recommended). full: every request routes via exit node (slower, ~250-500ms extra hop).",
|
|
"mode": "selective",
|
|
"_comment_hosts": "Hostnames to route through the exit node. Matches exact OR dot-anchored suffix (chatgpt.com covers api.chatgpt.com etc.). Extend for any CF-anti-bot blocked sites you need.",
|
|
"hosts": [
|
|
"chatgpt.com",
|
|
"claude.ai",
|
|
"x.com",
|
|
"grok.com",
|
|
"openai.com",
|
|
"aistudio.google.com",
|
|
"ai.google.dev"
|
|
]
|
|
}
|
|
}
|