GithubHelp home page GithubHelp logo

brook-heroku's Introduction

Deploy / 部署

Deploy

Usage / 用法

Brook wss: replace [app-name], [/ws] and [password]
要把 [app-name] 和 [/ws] 和 [password] 改成自己的

Server:   wss://[app-name].herokuapp.com:443[/ws]
Password: [password]
Available only if app_name is specified
只有指定了app_name才可用,不然404 Not Found

QR code:    https://[app-name].herokuapp.com:443/[password]/qr.png
Brook link: https://[app-name].herokuapp.com:443/[password]/link.txt

======================================================================

Cloudflare workers 加速,把第四行的[app-name]改成自己的 / (Recommended if you are in China)

cloudflare workers 加入以下內容

addEventListener(
  'fetch',event => {
     let url=new URL(event.request.url);
     url.hostname='[app-name].herokuapp.com';
     let request=new Request(url,event.request);
     event.respondWith(
          fetch(request)
    )
  }
)

用法

Brook wss: replace [xxx], [yyy], [/ws] and [password]
把cf workers的域名 [/ws] [password]那些都改成自己的

Server:   wss://[xxx].[yyy].workers.dev:443[/ws]
Password: [password]

======================================================================

Logs

heroku logs --tail -a [app-name]

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.