Skip to content

salixtein/brook-heroku

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sign up

Deploy

Deploy

Usage

Brook wss: replace [app-name], [/ws] and [password]
要把 [app-name] 和 [xxx] 和 [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]改成自己的 / (Recommend 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]

About

Heroku Brook wss server

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 91.4%
  • Dockerfile 8.6%