Code Monkey home page Code Monkey logo

xray's Introduction

xray

v2ray/xray docker 快速启动版 每天18点自动更新规则文件

说明

规则文件来源: https://github.com/Loyalsoldier/v2ray-rules-dat Docker 脚本修改来源:https://github.com/teddysun/across

如何使用

构建或者复制你的json文件,保存到当前目录

# 运行容器
docker run -d --network host --name xray -v $(pwd)/config.json:/etc/xray/config.json marchocode/xray

# 配置代理
export http_proxy="http://127.0.0.1:你的配置文件端口"
export https_proxy="http://127.0.0.1:你的配置文件端口"

# 测试下载
wget https://github.com/XTLS/Xray-core/releases/download/v1.6.1/Xray-linux-64.zip

Connecting to 127.0.0.1:10809... connected.
Proxy request sent, awaiting response... 302 Found

定时更新

默认每天18点更新规则文件,如需修改更新时间

新建一个文件,修改后挂载到容器内 -v your_file_path:/var/spool/cron/crontabs/root

*       18      *       *       *       /etc/xray/update-rules-dat.sh

xray's People

Contributors

marchocode avatar

Stargazers

AKHYui avatar  avatar

Watchers

 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.