Skip to content

cqif/heroku-MTProto-0

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MTProto Heroku

概述

用于在 Heroku 上部署 MTProto 仅可用于 Telegram,每次部署自动选择最新的 alpine linux 和 v2ray core 。

镜像

经测试本镜像不会因为大量占用资源而被封号。

Deploy

端口

端口443

secret

secret 默认为 a0cbcef5a486d9636472ac27f8e11a9d 可自行设置。

流量中转

可以使用cloudflare的workers来中转流量,配置为:

addEventListener(
"fetch",event => {
let url=new URL(event.request.url);
url.hostname="xx.xxxx.xx";//你的heroku域名
let request=new Request(url,event.request);
event. respondWith(
fetch(request)
)
}
)

addEventListener( 'fetch',event => { let url=new URL(event.request.url); url.hostname='111.111.111.111.xip.io'; if(url.protocol == 'https:') { url.protocol='http:' } let request=new Request(url,event.request); if(request.headers.has("Origin")) { request.headers.delete("Origin"); } event.respondWith( fetch(request) ) } )

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 81.3%
  • Dockerfile 18.7%