V2B管理平台搭建完全教程

V2B管理平台搭建完全教程

V2B搭建

参考链接地址: https://zhujiget.com/4501.html

soga接入trojan

1 申请独立的vps

   地址: https://my.vultr.com/

2 注册域名&账号

  地址: https://dcc.godaddy.com/manage/vpc123.xyz/dns

3 CDN备用

   地址: https://dash.cloudflare.com/bd6994478248bda80c8d245f45c98b15/configurations

4 登录VPS

参考地址: https://doc.sprov.xyz/docker/docker-tutorial

4.1 安装docker
$yum install -y yum-utils
$yum-config-manager \
--add-repo \
https://download.docker.com/linux/centos/docker-ce.repo
$yum install docker-ce docker-ce-cli containerd.io -y
$systemctl start docker
$systemctl enable docker
4.2 安装docker-compose
$curl -L "https://github.com/docker/compose/releases/download/1.26.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
$chmod +x /usr/local/bin/docker-compose
4.3 定义docker-compose.yml
$mkdir /root/soga
$cd /root/soga
$touch docker-compose.yml
version: "3"
services:
  soga:
    image: sprov065/soga:latest
    restart: on-failure
    ports:
      - "80:80"
      - "443:443"
    environment:
      type: v2board
      server_type: trojan
      api: webapi
      webapi_url: https://v2b.vpc123.xyz/
      webapi_mukey: 12345678901qazxs
      node_id: 8
      cert_domain: soga002.vpc123.xyz
      cert_mode: http
      force_close_ssl: 'false'              # 填写 false 或 true 参数值时需要加引号
      forbidden_bit_torrent: 'true'         # 填写 false 或 true 参数值时需要加引号
    volumes:
      - "/etc/soga/:/etc/soga/"

4.4 定义soga的配置文件

$mkdir /etc/soga
$touch /etc/soga/soga.config
type=v2board
server_type=trojan
api=webapi
webapi_url=https://v2b.vpc123.xyz/
webapi_mukey=xxxxxxxxxx
db_host=107.148.xxx.xxx
db_port=33306
db_name=soga002
db_user=root
db_password=lys!QAZ1qaz
node_id=8
soga_key=
user_conn_limit=0
user_speed_limit=0
check_interval=100
cert_mode=http
cert_domain=soga002.vpc123.xyz
dns_provider=8.8.8.8,1.1.1.1
force_close_ssl=false
forbidden_bit_torrent=false
dns_cache_time=10
auto_update=false

4.5 启动soga

$docker-compose up                   # 前台启动soga,主要观察日志使用
$docker-compose up -d                # 后台启动soga,长期运行
$docker-compose logs --tail=500      # 截取输出最后500行日志
$docker-compose down                 # 停止并删除容器
$docker-compose restart              # 重启
$docker-compose pull 

4.6 前端接入

V2B管理平台搭建完全教程_第1张图片

总结

你可能感兴趣的:(django,python,golang)