Awesome Open Source
Awesome Open Source

提示:UUID请使用UUID生成器,推荐UUID Generator

提醒:滥用可能导致账户被删除!!!

已不部署Trojan-Go、Shadowsocks,有兴趣的大佬可以推pr,本人也在尝试。

服务端创建操作流程

0)给本项目个stars

1)将本项目fork至自己仓库修改Deploy to Heroku按键指向地址为自己仓库地址

Deploy
2)点击上面紫色Deploy to Heroku,会跳转到heroku app创建页面,填上应用程序名、选择节点(美国或者欧洲)、自定义UUID码,其他建议保持默认,点击下面deploy,几秒后搞定!

3)若出现We couldn't deploy your app because the source code violates the Salesforce Acceptable Use and External-Facing Services Policy.提示,则返回仓库,>Setting>Repository name修改仓库名。

4)然后修改app.json文件中的namedescription

5)再修改Deploy to Heroku按键指向地址为自己仓库地址,重复2)的操作

vmess vless trojan-go shadowsocks对应客户端参数的参考如下,末尾带()里的内容仅为提示

1:Xray

代理协议:vless+ws+tls 或 vmess+ws+tls

  • 服务器地址:自选ip(如:icook.tw)或者:应用程序名.herokuapp.com
  • 端口:443
  • 默认UUID:8f91b6a0-e8ee-11ea-adc1-0242ac120002 (务必创建时自定义UUID码)
  • 加密:none
  • 传输协议:ws
  • 伪装类型:none
  • 伪装host:****.workers.dev(CF Workers反代地址)或者:应用程序名.herokuapp.com
  • SNI地址:****.workers.dev(CF Workers反代地址)或者:应用程序名.herokuapp.com
  • path路径:/自定义UUID码-vless 或 /自定义UUID码-vmess (注意:前有斜杠/)
  • vmess额外id(alterid):0
  • 底层传输安全:tls
  • 跳过证书验证:false

2:Trojan-Go+ws

  • 服务器地址:自选ip(如:icook.tw)或者:应用程序名.herokuapp.com
  • 端口:443
  • 密码:8f91b6a0-e8ee-11ea-adc1-0242ac120002 (务必创建时自定义UUID码)
  • 传输协议:ws
  • path路径:/自定义UUID码-trojan (注意:前有斜杠/)
  • SNI地址:****.workers.dev(CF Workers反代地址)或者:应用程序名.herokuapp.com
  • 伪装host:****.workers.dev(CF Workers反代地址)或者:应用程序名.herokuapp.com

3:Shadowsocks+ws+tls

  • 服务器地址: 应用程序名.herokuapp.com
  • 端口: 443
  • 密码:8f91b6a0-e8ee-11ea-adc1-0242ac120002 (务必创建时自定义UUID码)
  • 加密:chacha20-ietf-poly1305
  • 插件选项: tls;host=应用程序名.herokuapp.com;path=/自定义UUID码-ss

CloudFlare Workers反代代码(支持VLESS\VMESS\Trojan-Go的WS模式,可分别用两个账号的应用程序名(UUID与path保持一致),单双号天分别执行,那一个月就有550+550小时)

const SingleDay = '应用程序名1.herokuapp.com'
const DoubleDay = '应用程序名2.herokuapp.com'
addEventListener(
    "fetch",event => {
    
        let nd = new Date();
        if (nd.getDate()%2) {
            host = SingleDay
        } else {
            host = DoubleDay
        }
        
        let url=new URL(event.request.url);
        url.hostname=host;
        let request=new Request(url,event.request);
        event. respondWith(
            fetch(request)
        )
    }
)

const Day0 = 'app0.herokuapp.com'
const Day1 = 'app1.herokuapp.com'
const Day2 = 'app2.herokuapp.com'
const Day3 = 'app3.herokuapp.com'
const Day4 = 'app4.herokuapp.com'
addEventListener(
    "fetch",event => {
    
        let nd = new Date();
        let day = nd.getDate() % 5;
        if (day === 0) {
            host = Day0
        } else if (day === 1) {
            host = Day1
        } else if (day === 2) {
            host = Day2
        } else if (day === 3){
            host = Day3
        } else if (day === 4){
            host = Day4
        } else {
            host = Day1
        }
        
        let url=new URL(event.request.url);
        url.hostname=host;
        let request=new Request(url,event.request);
        event. respondWith(
            fetch(request)
        )
    }
)

原作者项目地址:https://awesomeopensource.com/project/mixool/xrayku


Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
Dockerfile (28,196
Heroku (4,124
Heroku Deployment (775
Shadowsocks (560
V2ray (328
Caddy (260
Related Projects