Skip to content

IMXeno123/kinto

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

87 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Telegram讨论群

Heroku上部署v2ray,可更改传输协议vmess和vless,默认是vmess传输,部署时在v2ray protocol选项框改成你喜欢的协议即可.

Deploy

部署服务端

点击上面紫色Deploy to Heroku,会跳转到heroku app创建页面,填上app的名字,选择你喜欢的传输协议vmess或者vless,最后换上从 https://www.uuidgenerator.net/ 拷贝过来的UUID,点击下面deploy创建APP,完成后会生成一个链接,点击链接显示“Bad Request”就说明部署成功了!

需要记下的是appname,和你填入的UUID,下面就可以设置客户端翻墙了。

客户端设置

注意和服务端协议保持一致,选择vmess或者vless,其它照图填写:

v2ray

上图是443端口设置方法,当然你也可以设置80端口,不要打开tls就可以了,如下:

地址(address) : appname.herokuapp.com	//appname替换成你的app名字

端口(port) : 80

用户ID(uuid) : 这里填写刚申请的UUID

加密方式(security) : aes-128-gcm

传输协议(network) : ws

本地客户端config.json文件配置:

{
  "inbounds": [
    {
      "port": 1080,
      "listen": "127.0.0.1",
      "protocol": "socks",
      "sniffing": {
        "enabled": true,
        "destOverride": ["http", "tls"]
      },
      "settings": {
        "auth": "noauth",
        "udp": false
      }
    }
  ],
  "outbounds": [
    {
      "protocol": "vmess",  //此处选择vmess或者vless
      "settings": {
        "vnext": [
          {
            "address": "appname.herokuapp.com",  //域名
            "port": 443,
            "users": [
              {
                "id": "c95ef1d4-f3ac-4586-96e9-234a37dda068"
              }
            ]
          }
        ]
      },
      "streamSettings": {
        "network": "ws",
        "security": "tls",
        "wsSettings": {}
      }
    }
  ]
}

Workers反代

addEventListener(
    "fetch",event => {
        let url=new URL(event.request.url);
        url.hostname="kinto-404.us1.kinto.io";
        let request=new Request(url,event.request);
        event. respondWith(
            fetch(request)
        )
    }
)

捐赠本博:https://starts.sh/donation.html

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 51.8%
  • Shell 48.2%