gdshare icon indicating copy to clipboard operation
gdshare copied to clipboard

在自己web服务器上需要什么环境

Open github-plus opened this issue 5 years ago • 3 comments

想问下在自己web服务器上搭建需要哪些环境

github-plus avatar Aug 18 '20 04:08 github-plus

可以看看 https://blog.cloudflare.com/cloudworker-a-local-cloudflare-worker-runner/

iwestlin avatar Aug 18 '20 11:08 iwestlin

挖坟,我刚试了下用cf官方开源的workerd,成功运行了gdshare

做法可以参考 https://github.com/cloudflare/workerd/blob/main/samples/helloworld/README.md

只需要把worker.js的内容替换成template.js里的就行了,如果需要修改监听端口,可以在config.capnp文件里改。

也就是说只需要三个文件,一个是workerd的二进制文件,一个是 config.capnp,另一个则是要运行的js文件。

iwestlin avatar Mar 20 '24 05:03 iwestlin

有人甚至配合workerd写出了一套cf的替代品:https://github.com/VaalaCat/vorker

但我还没试过,有兴趣可以看看……

iwestlin avatar Mar 20 '24 05:03 iwestlin