Code Monkey home page Code Monkey logo

movie-proxy-netlify's Introduction

disqusjs-proxy-netlify

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

简介

Netlify 提供 Serverless 部署服务,支持包括静态网页、微服务等。在这里我们使用 Netlify 的重定向功能部署一个 Disqus API 的反代。

使用教程

Deploy to Netlify 👈点此直接部署

  1. 使用此模板创建仓库 (可以创建为私有仓库,不会影响 Netlify 的功能)。
  2. 前往 Netlify 创建新项目,根据提示登录 GitHub 账号并选择刚才创建的仓库。
  3. 测试你的反代是否可以使用:访问你的反代域名,应该会跳转到 Disqus API 文档页面。

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

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

注意事项

  • Netlify 提供免费的 Plan,但是有每月 100GB 的流量限制

movie-proxy-netlify's People

Contributors

ysc3839 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.