GithubHelp home page GithubHelp logo

fupengl / xrayr-node.sh Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 1.0 23 KB

One-click deployment for `XrayR` nodes with `SSPanel` integration, using `nginx` and `Trojan-Go` ws protocol, and support for Cloudflare's `CDN` and `wrap` functionality.

License: MIT License

Shell 100.00%
nginx ssl xrayr cloudflare websocket wrap trojan-go

xrayr-node.sh's Introduction

XrayR Node Deployment Script

Currently only supports a single use case. If you need to connect to other panels or systems, feel free to contribute.

Prerequisites

  • Currently only supports CentOS 7/8
  • Requires registration of a cloudflare account and application for a token . Users obtain an SSL certificate.
  • Uses SSPanel as the default panel. To make other changes, please refer to the XrayR manual configuration.
  • By default, the client link uses 443 and the server listens on 8443. If you need to make changes, please configure it manually.
  • cloudflare has port restrictions when CDN is enabled. If you need to customize the port, please pay attention to the guide .
  • Only supports the Trojan-GO ws protocol.
  • If you use protocols such as TCP/UDP, use nginx-mod-stream to process them.

SSPanel Custom Config

The automatic script defaults to using the ws protocol, with Trojan service listening on port 8443, and nginx listening on ports 443 and 80. Port 80 is used for a fallback website to disguise, while port 443 is used to handle SSL proxy forwarding to the 8443 service.

{
  "allow_insecure": false,
  "offset_port_user": "443",
  "offset_port_node": "8443",
  "server_sub": "domain",
  "host": "domain",
  "network": "ws",
  "path": "/ws",
  "ws-opts": {
    "path": "/ws"
  }
}

One-Click Installation

First configure the Custom Config, and then use the script below for one-click deployment success.

bash <(curl -fsSL raw.githubusercontent.com/fupengl/xrayr-node.sh/master/trojan-node.sh)

Features

  • Uses SSPanel-Uim panel
  • Trojan-go ws protocol
  • Automatically applies for a cloudflare certificate
  • Uses nginx to process ssl websocket
  • Automatically wraps IPV4/IPV6 network cards using cloudflare wrap to solve website blocking of VPS addresses
  • Supports cloudflare CDN configuration

Related Links

License

MIT © fupengl

xrayr-node.sh's People

Contributors

fupengl avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

ximliu

xrayr-node.sh's Issues

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.