个人使用需求小,就 LLM,视频资源站的接口转发等,之前用的 cf worker,但是最近请求超时有些扛不住
https://dash.deno.com/ 可以直接访问,网速还行,每月 1 百万次请求, 100G 浏量
大概说明:
原项目: https://github.com/pwh-pwh/DenoProxy
本项目: https://github.com/akirco/denoproxy
/openai
https://api.openai.com
https://xxx.deno.dev/openai
简单说就是可以设置多个路由的代理,另外添加了简易的 UI 及鉴权
预览地址: https://upxgo.deno.dev/ 暗号:admin/admin
![]() |
1
ahu 3 天前 ![]() 新手!采用 folk 方式部署的。请问如何实现 Full Proxy Path 不是 http://localhost:8000 开头的,而是像你的预览地址一样
|
![]() |
2
AsuorZ OP @ahu dashboard 的项目设置里有个环境变量,添加.env 里的那三个就可以,SERVER_HOST 改成你的 https://xxx.deno.dev
|
![]() |
4
ahu 3 天前
另外在本地安装了 deno 2.2.2 和 deployctl 1.13.1 ,尝试部署时连续报错:
1 、`error: APIError: This project name is already in use.` 修改了 deno.json 中的 `"project": "denoproxy1",` 解决了 2 、`error: The deployment failed: Module not found "file:///src/main.ts".` 在 deno.json 的 include 部分增加了 `"main.ts",` 解决了 3 、`error: The deployment failed: Relative import path "templates" not prefixed with / or ./ or ../` 以及 `error: The deployment failed: Module not found "file:///src/templates".` 修改了 main.ts 中 `from "./templates.ts";` 解决了 |
![]() |
5
AsuorZ OP @ahu 好,我去修正一下,😂它这个就很难受,不同用户部署,理论上设计名字应该不会冲突的,其他两个没碰到,vscode 插件提示写成 templates 而不是./templates
|
![]() |
6
molezznet 3 天前
简洁。
现在靠的是 cf 的 tunnel 到指定目标…… |