diff --git a/v2ray示例/Xray-中级方案/香港实际使用的Xray配置-新.json b/v2ray示例/Xray-中级方案/香港实际使用的Xray配置-新.json new file mode 100644 index 0000000..2c0968c --- /dev/null +++ b/v2ray示例/Xray-中级方案/香港实际使用的Xray配置-新.json @@ -0,0 +1,77 @@ +{ + "log": { + "loglevel": "error" + }, + "inbounds": [ + { + "protocol": "trojan", + "listen": "0.0.0.0", + "port": 443, + "settings": { + "clients": [ + { + "password": "V2ryStr0ngP0ss" + } + ] + }, + "streamSettings": { + "network": "tcp", + "security": "tls", + "tlsSettings": { + "alpn": [ + "h2", + "http/1.1" + ], + "certificates": [ + { + "certificateFile": "/root/.acme.sh/xx.tc.hk.go.107421.xyz_ecc/fullchain.cer", + "keyFile": "/root/.acme.sh/xx.tc.hk.go.107421.xyz_ecc/xx.tc.hk.go.107421.xyz.key" + } + ] + } + }, + "tag": "hongkong-trojan" + }, + { + "port": 29999, + "protocol": "vless", + "settings": { + "clients": [ + { + "id": "fc903f5d-a007-482b-928c-570da9a851f9", + "flow": "xtls-rprx-vision" + } + ], + "decryption": "none" + }, + "streamSettings": { + "network": "tcp", + "security": "reality", + "realitySettings": { + "dest": "xx.tc.hk.go.107421.xyz:443", + "serverNames": [ + "xx.tc.hk.go.107421.xyz" + ], + "privateKey": "eOuEdWwYFkhKHAq6lhx3Txq2H7rZ9uy1csbKt4Jkq0E", + "shortIds": [ + "ad570cbfab" + ] + } + }, + "sniffing": { + "enabled": true, + "destOverride": [ + "http", + "tls", + "quic" + ], + "routeOnly": true + } + } + ], + "outbounds": [ + { + "protocol": "freedom" + } + ] +} \ No newline at end of file diff --git a/v2ray示例/XRay-外网服务器/香港实际使用的Xray配置.json b/v2ray示例/Xray-中级方案/香港实际使用的Xray配置.json similarity index 100% rename from v2ray示例/XRay-外网服务器/香港实际使用的Xray配置.json rename to v2ray示例/Xray-中级方案/香港实际使用的Xray配置.json diff --git a/v2ray示例/Xray-中级方案/香港证书申请模板.txt b/v2ray示例/Xray-中级方案/香港证书申请模板.txt new file mode 100644 index 0000000..d545aa2 --- /dev/null +++ b/v2ray示例/Xray-中级方案/香港证书申请模板.txt @@ -0,0 +1,12 @@ +export DOMAIN_NAME=xx.tc.hk.go.107421.xyz + +export CF_Token="oXJRP5XI8Zhipa_PtYtB_jy6qWL0I9BosrJEYE8p" +export CF_Account_ID="dfaadeb83406ef5ad35da02617af9191" +export CF_Zone_ID="511894a4f1357feb905e974e16241ebb" + +acme.sh --issue --dns dns_cf -d ${DOMAIN_NAME} --keylength ec-256 + +chmod -R 644 /root/.acme.sh/xx.tc.hk.go.107421.xyz_ecc/fullchain.cer +chmod 644 /root/.acme.sh/xx.tc.hk.go.107421.xyz_ecc/xx.tc.hk.go.107421.xyz.key + +systemctl restart xray && sleep 1 && systemctl status xray \ No newline at end of file diff --git a/常用脚本/磁盘扩容.sh b/常用脚本/磁盘扩容.sh index e8fdc11..a2113db 100644 --- a/常用脚本/磁盘扩容.sh +++ b/常用脚本/磁盘扩容.sh @@ -5,7 +5,7 @@ echo "n p - ++5G t 8e @@ -15,11 +15,11 @@ w partprobe -pvcreate /dev/sdc1 -vgextend rootvg /dev/sdc1 -export selfpesize=$(vgdisplay rootvg | grep 'Total PE' | awk '{print $3}') -lvextend -l+${selfpesize} /dev/mapper/rootvg-lvvar -xfs_growfs /dev/mapper/rootvg-lvroot +pvcreate /dev/sdc2 +vgextend rootvg /dev/sdc2 +export selfpesize=$(vgdisplay rootvg | grep 'Free' | awk '{print $5}') +lvextend -l+${selfpesize} /dev/mapper/rootvg-lvusr +xfs_growfs /dev/mapper/rootvg-lvusr