对本站之前看到的一个小项目 DenoProxy 进行了增强

202 天前
 AsuorZ

个人使用需求小,就 LLM,视频资源站的接口转发等,之前用的 cf worker,但是最近请求超时有些扛不住

https://dash.deno.com/ 可以直接访问,网速还行,每月 1 百万次请求, 100G 浏量

大概说明:

原项目: https://github.com/pwh-pwh/DenoProxy

本项目: https://github.com/akirco/denoproxy

简单说就是可以设置多个路由的代理,另外添加了简易的 UI 及鉴权

预览地址: https://upxgo.deno.dev/ 暗号:admin/admin

1720 次点击
所在节点    分享创造
7 条回复
ahu
202 天前
新手!采用 folk 方式部署的。请问如何实现 Full Proxy Path 不是 http://localhost:8000 开头的,而是像你的预览地址一样
AsuorZ
202 天前
@ahu dashboard 的项目设置里有个环境变量,添加.env 里的那三个就可以,SERVER_HOST 改成你的 https://xxx.deno.dev
ahu
202 天前
@AsuorZ #2 谢谢!我的 deno 入门帖
ahu
201 天前
另外在本地安装了 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";` 解决了
AsuorZ
201 天前
@ahu 好,我去修正一下,😂它这个就很难受,不同用户部署,理论上设计名字应该不会冲突的,其他两个没碰到,vscode 插件提示写成 templates 而不是./templates
molezznet
201 天前
简洁。
现在靠的是 cf 的 tunnel 到指定目标……
AsuorZ
201 天前
@molezznet 没用过,明天看看👀

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/1115128

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX