1ost-soul/edge — reverse-engineered prompt

Reverse engineered prompt

Build me a Cloudflare based edge tunnel app like edgetunnel 2.0. I want it to support VLESS and Trojan, and give me a simple web admin page at /admin with a password login. From that panel I should be able to change settings live, manage node details, see basic logs and traffic stats, and generate subscription links I can use in common clients like Clash, Sing box, and Surge.

Please make it work for both Workers and Pages, with settings saved in KV so changes stick. It should support a custom domain, optional quick subscription access with a secret path key, and options for custom proxy IP plus SOCKS5 or HTTP chained proxy routing when needed. I also want a normal looking fallback homepage URL instead of exposing the panel or tunnel directly.

Keep it easy to deploy, with environment variables like ADMIN and optional ones for UUID, KEY, PROXYIP, URL, and GO2SOCKS5. If anything is unclear, check current Cloudflare docs online and make sensible defaults.

Want more depth? Deep Reverse