Code Monkey home page Code Monkey logo

trojan_v2_docker_onekey's Introduction

# trojan_v2_docker_onekey
## 基于 Docker 容器架构的 Trojan-Go/VLESS/VMess TLS 部署脚本
### 本方案采用 TSP 进行 TLS 前置分流,后端使用 Trojan-Go、V2Ray 容器以及其他维护组件,实现几乎免维护的懒人体验。

特别提醒:
本脚本 1.10 版本改动较多,使用 1.00 以前版本脚本部署的环境,与新版脚本存在配置兼容性问题;
请在脚本升级后,通过选项 1. 卸载 TLS-Shunt-Proxy 重新安装,来完成新版本的配置适配。

具体更新内容详见Release页面
wget -N --no-check-certificate -q "https://cdn.jsdelivr.net/gh/h31105/trojan_v2_docker_onekey@latest/deploy.sh" && \
chmod +x deploy.sh && bash deploy.sh
使用简介:
——————————————————————部署管理——————————————————————
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.  退出脚本 
————————————————————————————————————————————————————

部署建议为:
1 TLS-Shunt-Proxy 负责证书全自动管理和网站服务(HTTPS 默认443 HTTP 80 自动跳转)
2 Trojan-Go 容器化部署 (可支持WebSocket)
3 V2Ray 容器化部署 (VLESS/VMess协议)
4 容器的镜像由 WatchTower 监控并自动更新 (建议安装)
5 Portainer 基于 Web 的 Docker 管理服务(http://domain-name:9080)(可选)

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

配置文件位置:
网站路径 /home/wwwroot/
证书文件存放在 /etc/ssl/tls-shunt-proxy/certificates/ 由TSP自动管理。

其他配置文件位置如下:
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),在此感谢!

其他参考:
# https://github.com/wulabing/V2Ray_ws-tls_bash_onekey
# https://hub.docker.com/u/teddysun/
# https://github.com/p4gefau1t/trojan-go
# https://www.v2ray.com/
# https://github.com/liberal-boy/tls-shunt-proxy
# https://www.docker.com/
# https://github.com/containrrr/watchtower
# https://github.com/portainer/portainer

trojan_v2_docker_onekey's People

Contributors

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