Coder Social home page Coder Social logo

wwweb's Introduction

本项目是使用v2ray api直接封装,后续会跟随v2ray升级而升级,采用编译的方式安装,理论上被ban的概率较低

因为v2ray 中vmess是较为广泛的协议,支持的设备也多,个人感觉没必要弄太多协议

服务端

Deploy

部署后,访问直接页面为404,但是不影响使用

客户端

"outbounds":

  "outbounds": [
    {
      "tag": "proxy",
      "protocol": "vmess",
      "settings": {
        "vnext": [
          {
            "address": "xxxx.herokuapp.com",
            "port": 443,
            "users": [
              {
                "id": "24b4b1e1-7a89-45f6-858c-242cf53b5bdc",
                "alterId": 0,
                "email": "[email protected]",
                "security": "none"
              }
            ]
          }
        ]
      },
      "streamSettings": {
        "network": "ws",
        "security": "tls",
        "tlsSettings": {
          "allowInsecure": false
        },
        "wsSettings": {
          "path": "/wowowowo"
        }
      }
    }
  ]

cloudflare workers 脚本,可以多部署heroku服务,随机使用,间接的提升速度,分散流量,添加或替换 const urls = ['1.herokuapp.com', '2.herokuapp.com', '3.herokuapp.com'] 中的地址

addEventListener("fetch", event => {
  event.respondWith(handleRequest(event.request))
})

const urls = ['1.herokuapp.com', '2.herokuapp.com','3.herokuapp.com','4.herokuapp.com']
async function handleRequest(request) {
   let rurl = request.url
    let url = new URL(rurl);
   if(url.pathname=="" || url.pathname=="/"){
         url.hostname = "www.baidu.com";
        let request3 = new Request(url, request);
        return fetch(request3)
   }
  let host = urls[Math.floor(Math.random()*urls.length)];
  url.hostname = host;
  let request2 = new Request(url, request);
  return fetch(request2)
}

wwweb's People

Contributors

chuccp avatar

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.