Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(README): add more serverless proxy and add me to the user list #36

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,21 @@ DisqusJS v1.0.0 及之后的版本使用了新的方法加载 DisqusJS,并去
[Cloudflare Workers](https://www.cloudflare.com/products/cloudflare-workers/) 提供了一个在 Cloudflare 上运行 JavaScript 的平台。在 `workers.dev` 域名上部署可提供每天 `100000` 次免费请求次数额度,在自己的域名上部署提供 `10M` 次免费请求额度(超出收费)。
[idawnlight/disqusjs-proxy-cloudflare-workers](https://github.com/idawnlight/disqusjs-proxy-cloudflare-workers) 提供了一份使用 Cloudflare Workers 进行反代的样例代码。

### Firebase

[Firebase Cloud Functions](https://firebase.google.com/products/functions/) 提供了执行 Nodejs 代码的 Serverless 平台。但是需要绑定银行卡 (不可使用银联,但可使用中国大陆发行的 Visa 或 MasterCard) 才能开启互联网出站访问功能,如无此条件建议使用别的免费服务商。
[ysc3839/disqusjs-proxy 的 firebase 分支](https://github.com/ysc3839/disqusjs-proxy/tree/firebase) 提供了一个简单的反向代理代码。

### Netlify

[Netlify](https://www.netlify.com/) 和 ZEIT Now 类似,提供了每月 100GiB 的免费流量,并且可以通过配置文件直接配置反向代理。
[ysc3839/disqusjs-proxy-netlify](https://github.com/ysc3839/disqusjs-proxy-netlify) 提供了一个使用 Netlify 进行反代的样例配置文件。
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Netlify 不需要提供配置样例,提供文档链接即可。

Suggested change
[ysc3839/disqusjs-proxy-netlify](https://github.com/ysc3839/disqusjs-proxy-netlify) 提供了一个使用 Netlify 进行反代的样例配置文件。
[Netlify 配置 Redirects 的相关文档](https://www.netlify.com/docs/redirects/)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

不过 ZEIT Now 也有个样例……

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

还有个用途是 Netlify 的一键部署功能,让用户自行创建的话也有点麻烦。


### Heroku

[Heroku](https://www.heroku.com/) 是一个支持多种编程语言的 Serverless 平台。
[ysc3839/disqusjs-proxy](https://github.com/ysc3839/disqusjs-proxy) 可直接部署至 Heroku。

## 注意

- Disqus API 不支持通过 AJAX 方式调用创建评论或者初始化页面,所以自动初始化页面和创建匿名评论在不搭配专门的后端程序的话不能实现。
Expand All @@ -210,6 +225,7 @@ DisqusJS v1.0.0 及之后的版本使用了新的方法加载 DisqusJS,并去
- imlonghao: [Imlonghao](https://imlonghao.com/)
- Yrom Wang: [Yrom's](https://yrom.net/) (Still using DisqusJS v0.2.5)
- h404bi: [Chawye Hsu's Blog](https://www.h404bi.com/blog/) ([source](https://github.com/h404bi/www.h404bi.com))
- ysc3839: [YSC's blog](https://blog.ysc3839.com/)

如果你的站点或者个人博客在使用 DisqusJS,来 [把你的网站分享给其他人吧](https://github.com/SukkaW/DisqusJS/issues/12)!

Expand Down