Giter Site home page Giter Site logo

railway-xray's Introduction

使用Railway部署Xray高性能代理服务,通过ws传输的 (vmess、vless、trojan shadowsocks、socks)等协议

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

概述

用于在 railway 上部署 vless+websocket+tls,每次部署自动选择最新的 alpine linux 和 Xray core 。
vless 性能更加优秀,占用资源更少。

  • 使用xray+caddy同时部署通过ws传输的vmess vless trojan shadowsocks socks等协议,并默认已配置好伪装网站。
  • 支持tor网络,且可通过自定义网络配置文件启动xray和caddy来按需配置各种功能
  • 支持存储自定义文件,目录及账号密码均为UUID,客户端务必使用TLS连接

服务端

fork 之后 ,在railway的dashboard,选择 new project CHIH8A.png 然后在github中选中本仓库 5oSpg.png

客户端

  • 务必替换所有的xxx.railway.app为railway分配的项目域名
  • 务必替换所有的24b4b1e1-7a89-45f6-858c-242cf53b5bdb为部署时设置的UUID,建议更改,不要每个人都一样

XRay 将在部署时会自动实配安装最新版本

V2rayN(Xray、V2ray)
* 客户端下载:https://github.com/2dust/v2rayN/releases
* 代理协议:vless 或 vmess
* 地址:xxx.herokuapp.com
* 端口:443
* 默认UUID:24b4b1e1-7a89-45f6-858c-242cf53b5bdb
* vmess额外id:0
* 加密:none
* 传输协议:ws
* 伪装类型:none
* 伪装域名:xxx.workers.dev(CF Workers反代地址)
* 路径:/24b4b1e1-7a89-45f6-858c-242cf53b5bdb-vless // 默认vless使用(/自定义UUID码-vless),vmess使用(/自定义UUID码-vmess)
* 底层传输安全:tls
* 跳过证书验证:false
Trojan-Go
* 客户端下载: https://github.com/p4gefau1t/trojan-go/releases
{
    "run_type": "client",
    "local_addr": "127.0.0.1",
    "local_port": 1080,
    "remote_addr": "xxx.herokuapp.com",
    "remote_port": 443,
    "password": [
        "24b4b1e1-7a89-45f6-858c-242cf53b5bdb"
    ],
    "websocket": {
        "enabled": true,
        "path": "/24b4b1e1-7a89-45f6-858c-242cf53b5bdb-trojan",
        "host": "xxx.herokuapp.com"
    }
}
Shadowsocks
* 客户端下载:https://github.com/shadowsocks/shadowsocks-windows/releases/
* 服务器地址: xxx.herokuapp.com
* 端口: 443
* 密码:24b4b1e1-7a89-45f6-858c-242cf53b5bdb
* 加密:chacha20-ietf-poly1305
* 插件程序:xray-plugin_windows_amd64.exe  //需将插件https://github.com/shadowsocks/xray-plugin/releases下载解压后放至shadowsocks同目录
* 插件选项: tls;host=xxx.herokuapp.com;path=/24b4b1e1-7a89-45f6-858c-242cf53b5bdb-ss
可以使用Cloudflare的Workers来中转流量,(支持VLESS\VMESS\Trojan-Go的WS模式)配置为:
const SingleDay = 'xxx.herokuapp.com'
const DoubleDay = 'xxx.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)
        )
    }
)

OpenWrt优选IP脚本自动更新:

更多来自热心网友PR的使用教程

关于CF筛选IP

railway-xray's People

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.