[新服务]一键脚本设立XUI(X-UI)面板

目的

效果和这个本馆档案是一样的,不过是一键脚本

参考

获得CloudFlare上相应zone的api token+zone id+account id

https://github.com/acmesh-official/acme.sh/wiki/dnsapi#1-cloudflare-option

实现

apt update -y && apt upgrade -y 

apt install -y docker.io
# composer
sudo curl -L "https://github.com/docker/compose/releases/download/1.26.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose && chmod +x /usr/local/bin/docker-compose && sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
docker-compose --version
wget https://raw.githubusercontent.com/stilleshan/dockerfiles/main/x-ui/x-ui-ssl/install.sh && chmod +x install.sh 

# 如果是zsh还要修改这段 把所有的 == 变成 = 才是zsh当中正确的string comparison operator
# if [ "$DNSAPI_INPUT" == "3" ]; then   
# ==>
# if [ "$DNSAPI_INPUT" = "3" ]; then   

./install.sh

查找ssl证书的路径

docker exec -it x-ui find /ssl/

默认登陆是 ip:54321 用户名和密码都是admin

梯子配置

vmess+ws

- name: "V2_美西甲骨文 orc-sanjose-1"
  type: vmess
  server: orc-sanjose-1.yyy.xxx
  port: 443
  uuid: 
  alterId: 0
  cipher: auto
  tls: true
  network: ws #如果选了h2,就填h2
  ws-headers:
    Host: orc-sanjose-1.yyy.xxx
  ws-path: /vmessws

vless + xtls + tcp (据说性能最强)

vless://[email protected]:443?security=xtls&encryption=none&headerType=none&type=tcp&flow=xtls-rprx-splice#orc-sanjose-1+vless+xtls

trojan

- name: "Trojan|US hostodomia 可netflix202108"
  type: trojan
  server: hostodomia.xxx.com
  port: 443
  password: xxx
  skip-cert-verify: true

vless+ws+tls

Leave a Reply