自用存檔[aapanel+vmess+ws+tls+nginx+cdn]

WEBSITE CONFIG PART

ADD THEM AFTER LINE ABOUT #27 [#SSL-END]

location /ou
{
    proxy_pass http://127.0.0.1:YOUR PORT;
    proxy_redirect off;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "upgrade";
    proxy_set_header Host $http_host;
    proxy_read_timeout 300s;
}

INSTALL V2RAY UBUNTU/DEBIAN/CENTOS SAME


curl -O https://raw.githubusercontent.com/v2fly/fhs-install-v2ray/master/install-release.sh
curl -O https://raw.githubusercontent.com/v2fly/fhs-install-v2ray/master/install-dat-release.sh

INSTALL V2


bash install-release.sh

INSTALL GEOIP DATAA


bash install-dat-release.sh

GET RANDOM UUID


cat /proc/sys/kernel/random/uuid

ENTER /usr/local/etc/v2ray/ TO EDIT config.json



{
  "inbounds": [{
    "port": YOUR PORT,
    "listen": "127.0.0.1",
    "protocol": "vmess",
    "settings": {
      "clients": [
        {
          "id": "YOUR uuid",
          "level": 1,
          "alterId": 0
        }
      ],
      "disableInsecureEncryption": false
    },
    "streamSettings": {
        "network": "ws",
        "wsSettings": {
            "path": "/ou",
            "headers": {
                "Host": "CUSTOMER DOMAIN"
            }
        }
    }
  }],
  "outbounds": [{
    "protocol": "freedom",
    "settings": {}
  },{
    "protocol": "blackhole",
    "settings": {},
    "tag": "blocked"
  }],
  "routing": {
    "rules": [
      {
        "type": "field",
        "ip": ["geoip:private"],
        "outboundTag": "blocked"
      }
    ]
  }
}

SET V2 START ON BOOT

systemctl enable v2ray
systemctl start v2ray

RESTART V2 AND CHECKA

systemctl restart v2ray
systemctl status v2ray

Comment

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *