Giter Site home page Giter Site logo

trojan_v2_docker_onekey's Introduction

TSP & Trojan-Go / V2Ray 容器化管理部署脚本

GitHub FOSSA Status GitHub top language Codacy Badge GitHub release (latest by date) GitHub forks Visitors

基于 Docker 容器架构的 Trojan-Go/VLESS/VMess-TCP/WS-TLS 分流部署&管理脚本

本方案采用 TSP 进行 TLS 前置分流,后端使用 Trojan-Go、V2Ray 容器与 WatchTower、Portainer 维护组件配合,实现快速部署、易用易维护的极致体验。

使用简介

  • 最新版:
wget -N --no-check-certificate -q "https://cdn.jsdelivr.net/gh/h31105/trojan_v2_docker_onekey/deploy.sh" && \
chmod +x deploy.sh && bash deploy.sh
  • 老版本:(不支持 VLESS 协议 & Trojan-Go WebSocket 配置)
wget -N --no-check-certificate -q "https://cdn.jsdelivr.net/gh/h31105/[email protected]/deploy.sh" && \
chmod +x deploy.sh && bash deploy.sh

提醒 由于 1.10 版本改动较多,使用 1.00 以前版本脚本部署的环境,与新版脚本存在配置兼容性问题,请在脚本升级后,根据提示重新安装 TLS-Shunt-Proxy 来完成新版本的配置适配。(更新内容详见 Release 页面)

    ——————————————————————部署管理——————————————————————
    1.  安装 TLS-Shunt-Proxy(网站&自动管理证书)
    2.  安装 Trojan-Go TCP/WS 代理(容器)
    3.  安装 V2Ray TCP/WS 代理(容器)
    4.  安装 WatchTower(自动更新容器)
    5.  安装 Portainer(Web管理容器)
    ——————————————————————配置修改——————————————————————
    6.  修改 TLS 端口/域名
    7.  修改 Trojan-Go 代理配置
    8.  修改 V2Ray 代理配置
    ——————————————————————查看信息——————————————————————
    9.  查看配置信息
    ——————————————————————杂项管理——————————————————————
    10. 升级 TLS-Shunt-Proxy/Docker 基础平台
    11. 卸载 已安装的所有组件
    12. 安装 4合1 BBR 锐速脚本
    0.  退出脚本 
    ————————————————————————————————————————————————————   

部署建议

  • TLS-Shunt-Proxy 负责证书全自动管理和网站服务(HTTPS 默认 443 HTTP 80 自动跳转)

  • Trojan-Go 容器化部署 (支持 WebSocket)

  • V2Ray 容器化部署(VLESS/VMess 协议)

  • 容器的镜像由 WatchTower 监控并自动更新(建议安装)

    *WatchTower 无需额外配置,已配置为自动更新容器并清理过期镜像

  • Portainer 基于 Web 的 Docker 管理服务(可选)

    *Portainer 安装后,请尽快访问管理地址:http://<server.domain.name>:9080,设置管理帐号和密码。

注意 本脚本为单用户配置,部署后可以自行按需修改代理配置内容,但修改后不要使用脚本菜单中的修改选项,修改选项会重置相关配置信息。部署后请按需开启防火墙端口,例如 HTTP 80、9080 及 HTTPS 443 端口。

日志查看

TLS-Shunt-Proxy 日志查看

  • 查看所有日志:journalctl -u tls-shunt-proxy.service
  • 查看当天日志:journalctl -u tls-shunt-proxy.service --since today

容器日志查看

  • 查看 Trojan-Go 日志

    最近 30 分钟日志:docker logs --since 30m Trojan-Go

  • 查看 V2Ray 日志

    最近 100 行日志:docker logs --tail=100 V2Ray

  • 查看 WatchTower 日志

    指定时间后日志:docker logs --since="2020-09-01T10:10:00" WatchTower

  • 查看 Portainer 日志

    指定时间段日志:docker logs --since="2020-09-05T10:10:00" --until "2020-09-05T12:00:00" Portainer

配置文件

  • WebSite:/home/wwwroot/
  • TLS-Shunt-Proxy:/etc/tls-shunt-proxy/config.yaml
  • Trojan-Go:/etc/trojan-go/config.json
  • V2ray:/etc/v2ray/config.json

其他参考

本脚本最初由wulabing/V2Ray_ws-tls_bash_onekey脚本改写,脚本中使用的 Docker 镜像来自于秋水逸冰(Teddysun),在此感谢二位!(其他外部引用皆为“官方源”)

License

FOSSA Status H31105's github stats

trojan_v2_docker_onekey's People

Contributors

h31105 avatar fossabot 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.