All Projects → SukkaW → disqusjs-proxy-example

SukkaW / disqusjs-proxy-example

Licence: other
Using Now as Disqus API Proxy

Projects that are alternatives of or similar to disqusjs-proxy-example

docker-craft-nginx
🐳 A minimal Docker container for Craft CMS, intended for use with zeit-now.
Stars: ✭ 26 (+73.33%)
Mutual labels:  now, zeit-now
now-nuxt
A Now v2 Nuxt builder
Stars: ✭ 25 (+66.67%)
Mutual labels:  now, zeit-now
the-littoral-line
Email newsletter archive
Stars: ✭ 12 (-20%)
Mutual labels:  now
now-course
Proyecto para el curso de Now.sh en Platzi
Stars: ✭ 19 (+26.67%)
Mutual labels:  now
Disqus.NET
Disqus API for .NET
Stars: ✭ 13 (-13.33%)
Mutual labels:  disqus
now-deno-example
A demo application of now-deno and deno-postgres.
Stars: ✭ 30 (+100%)
Mutual labels:  zeit-now
hugo-initio
Hugo Theme port of Initio bootstrap template by GetTemplate
Stars: ✭ 58 (+286.67%)
Mutual labels:  disqus
coincharts
Cryptocurrency Price Chart (GDAX)
Stars: ✭ 75 (+400%)
Mutual labels:  now
pytorch-serving
[UNMAINTAINED] A starter pack for creating a lightweight responsive web app for Fast.AI PyTorch models.
Stars: ✭ 16 (+6.67%)
Mutual labels:  zeit-now
notion-custom-domain
📝 Custom domains for your public Notion pages
Stars: ✭ 23 (+53.33%)
Mutual labels:  now
hugo-dream-plus
🌈 An upgraded version of the Hugo "Dream" theme with tons of new features.
Stars: ✭ 67 (+346.67%)
Mutual labels:  disqus
covid-19-next
Offline Covid-19 stats
Stars: ✭ 17 (+13.33%)
Mutual labels:  zeit-now
react-notify
📖🔥🚀 React Notify using Noty and React, is a dependency-free notification library that simplifies creating alert's on a web applications.
Stars: ✭ 50 (+233.33%)
Mutual labels:  zeit-now
gatsby-plugin-disqus
💬 A plugin for adding Disqus comments to GatsbyJS
Stars: ✭ 40 (+166.67%)
Mutual labels:  disqus
now-middleware
Chain Express middlewares with Vercel (ex-ZEIT) Now serverless functions.
Stars: ✭ 21 (+40%)
Mutual labels:  now
ipapi
Get geoip information with an API call.
Stars: ✭ 55 (+266.67%)
Mutual labels:  now
now dashboard
▲ZEIT dashboard written in elm
Stars: ✭ 52 (+246.67%)
Mutual labels:  now
zoom-slack-status-updater
Update your Slack status automatically when you join a Zoom meeting.
Stars: ✭ 23 (+53.33%)
Mutual labels:  zeit-now
hojetem.live
🎶Curated live concerts from famous Brazilian artists.
Stars: ✭ 44 (+193.33%)
Mutual labels:  now
Blog-laravel
This is built on Laravel Framework 5.5. This was built for demonstrate purpose.
Stars: ✭ 48 (+220%)
Mutual labels:  disqus

disqusjs-proxy-example

一个使用 ZEIT Now 部署 Disqus API Proxy 的示例。

简介

ZEIT Now 提供 Serverless 部署服务,支持包括静态网页、微服务、Lambda、持续集成等。在这里我们使用 Now 的微服务功能部署一个 Disqus API 的反代。

DisqusJS 中提供的公共 Disqus API 反代就部署在 ZEIT Now 上。

使用教程

  1. fork 这个 repo
  2. ZEIT 上注册账号并绑定 GitHub 账号
  3. GitHub APP 中为 Now 设置你 fork 后的 repo 的访问权限
  4. 在你 fork 后的 repo 中修改 _now.json 的相关内容
  • 如果你想要绑定你自己的域名,请将 _now.json[Place Your Domain Here] 改成你的域名,否则你可以将整个 alias 字段删除
  • 如果不配置自己的域名,你也可以使用 ZEIT 提供的 now.sh 子域名
  • [Cache Age] 修改为缓存时长(数字),单位是秒。如果你并不需要设置 Cache-Control 响应头,你可以将 routes.headers 字段删除
  • 如果你想要定制其它内容(如添加响应头),请参阅 ZEIT 的相关文档
  1. _now.json 重命名为 now.json 并提交 commit
  2. ZEIT 会自动开始部署你的项目,当部署完成后,ZEIT 的 Bot 会在你的 commit 中添加一条评论提示部署结果
  3. 如果你绑定了你自己的域名,需要添加一条 CNAME 记录指向 alias.zeit.co
  4. 测试你的反代是否可以使用:访问你的反代域名,应该会跳转到 Disqus API 文档页面

因为直接访问 https://disqus.com/api/ 便会跳转到 https://disqus.com/api/docs/ ;反代也会返回 3xx 状态码

  1. 修改你的服务中 Disqus API Endpoint 的配置;如果你正在使用 DisqusJS,这个配置是 DisqusJS 中的 api 字段。

注意事项

  • ZEIT 提供永久免费的 Plan,但是有 100GB 的流量限制
  • ZEIT 实例中的 now.sh 域名会使用 Cloudflare 的 Enterprise Plan;但是你绑定的自己的域名只能使用 ZEIT 自有的基础设施,如有必要可以在 Now 实例之外套一层 CDN
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].