From 0db5616a0cccddc115c013f3c29c7e70128c96bb Mon Sep 17 00:00:00 2001 From: zeaslity Date: Fri, 19 Jul 2024 17:17:14 +0800 Subject: [PATCH] [ proxy ] proxy synchronized --- v2ray示例/99-subscribe-octopus-latest.txt | 4 +-- v2ray示例/sync-proxy-config.ps1 | 32 +++++++++++++++++++++++ 2 files changed, 34 insertions(+), 2 deletions(-) create mode 100644 v2ray示例/sync-proxy-config.ps1 diff --git a/v2ray示例/99-subscribe-octopus-latest.txt b/v2ray示例/99-subscribe-octopus-latest.txt index e76683b..1f37319 100644 --- a/v2ray示例/99-subscribe-octopus-latest.txt +++ b/v2ray示例/99-subscribe-octopus-latest.txt @@ -1,10 +1,10 @@ vmess://eyJ2IjoiMiIsInBzIjoidXMtY2VudGUtZnJlZSIsImFkZCI6Im5vcnRoZmxhbmsuMTA3NDIxLnh5eiIsInBvcnQiOjQ0MywiaWQiOiJkZTA0YWRkOS01YzY4LThiYWItOTUwYy0wOGNkNTMyMGRmMTgiLCJhaWQiOjAsInNjeSI6ImF1dG8iLCJuZXQiOiJ3cyIsInBhdGgiOiIvdm1lc3MiLCJ0bHMiOiJ0bHMifQ== trojan://V2ryStr0ngP0ss@140.238.14.103:443?type=tcp&sni=xx.s4.cc.hh.107421.xyz&allowInsecure=0&host=xx.s4.cc.hh.107421.xyzh2,http/1.1#Seoul-Trojan -trojan://V2ryStr0ngP0ss@89.208.251.209:29999?security=tls&sni=xx.l4.cc.nn.107421.xyz&alpn=h2%2Chttp%2F1.1&fp=safari&type=tcp&headerType=none#LosAngels-BanH-Trojan +trojan://V2ryStr0ngP0ss@89.208.251.209:443?security=tls&sni=xx.l4.cc.nn.107421.xyz&alpn=h2%2Chttp%2F1.1&fp=safari&type=tcp&headerType=none#LosAngels-BanH-Trojan-443 +trojan://V2ryStr0ngP0ss@89.208.251.209:29999?security=tls&sni=xx.l4.cc.nn.107421.xyz&alpn=h2%2Chttp%2F1.1&fp=safari&type=tcp&headerType=none#LosAngels-BanH-Trojan-29999 trojan://V2ryStr0ngP0ss@140.238.14.103:19997?type=tcp&sni=xx.s4.cc.hh.107421.xyz&allowInsecure=0&host=xx.s4.cc.hh.107421.xyzh2,http/1.1#Osaka-Trojan trojan://V2ryStr0ngP0ss@140.238.14.103:19999?type=tcp&sni=xx.s4.cc.hh.107421.xyz&allowInsecure=0&host=xx.s4.cc.hh.107421.xyzh2,http/1.1#Tokyo-Trojan trojan://V2ryStr0ngP0ss@140.238.14.103:19998?type=tcp&sni=xx.s4.cc.hh.107421.xyz&allowInsecure=0&host=xx.s4.cc.hh.107421.xyzh2,http/1.1#Pheonix-Trojan trojan://V2ryStr0ngP0ss@146.56.147.12:30000?type=tcp&sni=xx.s0.yy.ac.107421.xyz&allowInsecure=0&host=xx.s0.yy.ac.107421.xyzh2,http/1.1#Seoul-arm64-01-Trojan trojan://V2ryStr0ngP0ss@43.154.83.213:443?type=tcp&sni=xx.tc.hk.go.107421.xyz&allowInsecure=0h2,http/1.1#Tencent-Hkong-Trojan vless://fc903f5d-a007-482b-928c-570da9a851f9@43.154.83.213:29999?security=reality&flow=xtls-rprx-vision&type=tcp&sni=xx.tc.hk.go.107421.xyz&fp=chrome&pbk=IBKk7cbbpnarU9sxJx84tXztytBFH2oCNfy7FlLVjDg&sid=ad570cbfab&encryption=none&headerType=none#Tencent-HK-11.24 -trojan://V2ryStr0ngP0ss@89.208.251.209:443?security=tls&sni=xx.l4.cc.nn.107421.xyz&alpn=h2%2Chttp%2F1.1&fp=safari&type=tcp&headerType=none#LosAngels-BanH-Trojan-Back diff --git a/v2ray示例/sync-proxy-config.ps1 b/v2ray示例/sync-proxy-config.ps1 new file mode 100644 index 0000000..8a4af4e --- /dev/null +++ b/v2ray示例/sync-proxy-config.ps1 @@ -0,0 +1,32 @@ +function SayHello +{ + param ( + [string]$Name + ) + Write-Host "Hello, $Name!" +} + +# 调用函数 +SayHello -Name "Test PowerShell" + +function SetMinioAlias +{ +# mc.exe alias set local http://10.250.0.100:9000 cmii B#923fC7mk +# mc.exe alias set tc-sh http://42.192.52.227:9000 cmii B#923fC7mk + mc.exe alias set seoul-1 https://cnk8d6fazu16.compat.objectstorage.ap-seoul-1.oraclecloud.com aed62d24d85e2da809ce02bf272420ba4ed74820 rQdEcn69K049+JkA1IGoQmC1k8zma8zfWvZvVS0h144= +} + +SetMinioAlias + +# 获取当前工作目录 +$currentDirectory = Get-Location +# 打印当前工作目录 +Write-Host "Current directory: $currentDirectory" +Write-Host "" + +# 获取当前目录的所有文件名 +mc.exe cp $currentDirectory\98-subscribe-clash.yaml seoul-1/seoul/ +mc.exe cp $currentDirectory\99-subscribe-octopus-latest.txt seoul-1/seoul/ + +Write-Host "" +Write-Host "All proxy config has been synchronized !" \ No newline at end of file