mirror of
https://github.com/xVRVx/autoXRAY.git
synced 2026-08-26 08:35:34 +00:00
Add files via upload
This commit is contained in:
@@ -184,10 +184,12 @@ path_xhttp=$(openssl rand -base64 15 | tr -dc 'a-z0-9' | head -c 6)
|
||||
|
||||
# ipserv=$(hostname -I | awk '{print $1}')
|
||||
|
||||
socksUser=$(openssl rand -base64 16 | tr -dc 'A-Za-z0-9' | head -c 6)
|
||||
socksPasw=$(openssl rand -base64 32 | tr -dc 'A-Za-z0-9' | head -c 16)
|
||||
|
||||
|
||||
# Экспортируем переменные для envsubst
|
||||
export xray_uuid_vrv xray_privateKey_vrv xray_publicKey_vrv xray_shortIds_vrv xray_sspasw_vrv DOMAIN path_subpage path_xhttp WEB_PATH
|
||||
export xray_uuid_vrv xray_privateKey_vrv xray_publicKey_vrv xray_shortIds_vrv xray_sspasw_vrv DOMAIN path_subpage path_xhttp WEB_PATH socksUser socksPasw
|
||||
|
||||
# Создаем JSON конфигурацию сервера
|
||||
cat << 'EOF' | envsubst > "$SCRIPT_DIR/config.json"
|
||||
@@ -309,6 +311,24 @@ cat << 'EOF' | envsubst > "$SCRIPT_DIR/config.json"
|
||||
"quic"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"tag": "socks5",
|
||||
"port": 10443,
|
||||
"listen": "0.0.0.0",
|
||||
"protocol": "mixed",
|
||||
"settings": {
|
||||
"ip": "0.0.0.0",
|
||||
"udp": true,
|
||||
"auth": "password",
|
||||
"accounts": [
|
||||
{
|
||||
"user": "${socksUser}",
|
||||
"pass": "${socksPasw}"
|
||||
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"outbounds": [
|
||||
@@ -749,6 +769,172 @@ cat << 'EOF' | envsubst > "$WEB_PATH/$path_subpage.json"
|
||||
"port": 10809
|
||||
}
|
||||
],
|
||||
"outbounds": [
|
||||
{
|
||||
"mux": {
|
||||
"concurrency": -1,
|
||||
"enabled": false
|
||||
},
|
||||
"tag": "proxy",
|
||||
"protocol": "vless",
|
||||
"settings": {
|
||||
"vnext": [
|
||||
{
|
||||
"address": "$DOMAIN",
|
||||
"port": 443,
|
||||
"users": [
|
||||
{
|
||||
"id": "${xray_uuid_vrv}",
|
||||
"encryption": "none"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"streamSettings": {
|
||||
"network": "xhttp",
|
||||
"xhttpSettings": {
|
||||
"extra": {
|
||||
"headers": {
|
||||
},
|
||||
"noGRPCHeader": false,
|
||||
"scMaxEachPostBytes": 1500000,
|
||||
"scMinPostsIntervalMs": 20,
|
||||
"scStreamUpServerSecs": "60-240",
|
||||
"xPaddingBytes": "400-800",
|
||||
"xmux": {
|
||||
"cMaxReuseTimes": "1000-3000",
|
||||
"hKeepAlivePeriod": 0,
|
||||
"hMaxRequestTimes": "400-700",
|
||||
"hMaxReusableSecs": "1200-1800",
|
||||
"maxConcurrency": "3-5",
|
||||
"maxConnections": 0
|
||||
}
|
||||
},
|
||||
"mode": "auto",
|
||||
"path": "/${path_xhttp}"
|
||||
},
|
||||
"security": "reality",
|
||||
"realitySettings": {
|
||||
"show": false,
|
||||
"fingerprint": "chrome",
|
||||
"serverName": "$DOMAIN",
|
||||
"password": "${xray_publicKey_vrv}",
|
||||
"shortId": "${xray_shortIds_vrv}",
|
||||
"mldsa65Verify": "",
|
||||
"spiderX": "/"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"tag": "direct",
|
||||
"protocol": "freedom"
|
||||
},
|
||||
{
|
||||
"tag": "block",
|
||||
"protocol": "blackhole"
|
||||
}
|
||||
],
|
||||
"remarks": "🇧🇩 vlessXHTTPrealityEXTRA - autoXRAY"
|
||||
},
|
||||
{
|
||||
"log": {
|
||||
"loglevel": "warning"
|
||||
},
|
||||
"dns": {
|
||||
"servers": [
|
||||
"https://8.8.4.4/dns-query",
|
||||
"https://8.8.8.8/dns-query",
|
||||
"https://1.1.1.1/dns-query"
|
||||
],
|
||||
"queryStrategy": "UseIPv4"
|
||||
},
|
||||
"routing": {
|
||||
"domainStrategy": "IPIfNonMatch",
|
||||
"rules": [
|
||||
{
|
||||
"domain": [
|
||||
"geosite:category-ads",
|
||||
"geosite:win-spy"
|
||||
],
|
||||
"outboundTag": "block"
|
||||
},
|
||||
{
|
||||
"protocol": [
|
||||
"bittorrent"
|
||||
],
|
||||
"outboundTag": "direct"
|
||||
},
|
||||
{
|
||||
"domain": [
|
||||
"geosite:private",
|
||||
"geosite:apple",
|
||||
"geosite:apple-pki",
|
||||
"geosite:huawei",
|
||||
"geosite:xiaomi",
|
||||
"geosite:category-android-app-download",
|
||||
"geosite:f-droid",
|
||||
"geosite:yandex",
|
||||
"geosite:vk",
|
||||
"geosite:microsoft",
|
||||
"geosite:win-update",
|
||||
"geosite:win-extra",
|
||||
"geosite:google-play",
|
||||
"geosite:steam",
|
||||
"geosite:category-ru"
|
||||
],
|
||||
"outboundTag": "direct"
|
||||
},
|
||||
{
|
||||
"ip": [
|
||||
"geoip:private"
|
||||
],
|
||||
"outboundTag": "direct"
|
||||
},
|
||||
{
|
||||
"type": "field",
|
||||
"ip": [
|
||||
"geoip:!ru"
|
||||
],
|
||||
"outboundTag": "proxy"
|
||||
},
|
||||
{
|
||||
"domain": [
|
||||
"geosite:discord",
|
||||
"geosite:youtube",
|
||||
"geosite:tiktok",
|
||||
"geosite:signal"
|
||||
],
|
||||
"outboundTag": "proxy"
|
||||
}
|
||||
]
|
||||
},
|
||||
"inbounds": [
|
||||
{
|
||||
"tag": "socks-in",
|
||||
"protocol": "socks",
|
||||
"listen": "127.0.0.1",
|
||||
"port": 10808,
|
||||
"settings": {
|
||||
"udp": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"tag": "socks-sb",
|
||||
"protocol": "socks",
|
||||
"listen": "127.0.0.1",
|
||||
"port": 2080,
|
||||
"settings": {
|
||||
"udp": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"tag": "http-in",
|
||||
"protocol": "http",
|
||||
"listen": "127.0.0.1",
|
||||
"port": 10809
|
||||
}
|
||||
],
|
||||
"outbounds": [
|
||||
{
|
||||
"mux": {
|
||||
@@ -796,20 +982,27 @@ link1="vless://${xray_uuid_vrv}@$DOMAIN:443?security=reality&type=tcp&headerType
|
||||
|
||||
link2="vless://${xray_uuid_vrv}@$DOMAIN:443?security=reality&type=xhttp&headerType=&path=%2F$path_xhttp&host=&mode=auto&sni=$DOMAIN&fp=chrome&pbk=${xray_publicKey_vrv}&sid=${xray_shortIds_vrv}&spx=%2F#vlessXHTTPreality-autoXRAY"
|
||||
|
||||
link22="vless://${xray_uuid_vrv}@$DOMAIN:443?security=reality&type=xhttp&headerType=&path=%2F$path_xhttp&host=&mode=auto&extra=%7B%22xmux%22%3A%7B%22cMaxReuseTimes%22%3A%221000-3000%22%2C%22maxConcurrency%22%3A%223-5%22%2C%22maxConnections%22%3A0%2C%22hKeepAlivePeriod%22%3A0%2C%22hMaxRequestTimes%22%3A%22400-700%22%2C%22hMaxReusableSecs%22%3A%221200-1800%22%7D%2C%22headers%22%3A%7B%7D%2C%22noGRPCHeader%22%3Afalse%2C%22xPaddingBytes%22%3A%22400-800%22%2C%22scMaxEachPostBytes%22%3A1500000%2C%22scMinPostsIntervalMs%22%3A20%2C%22scStreamUpServerSecs%22%3A%2260-240%22%7D&sni=$DOMAIN&fp=chrome&pbk=${xray_publicKey_vrv}&sid=${xray_shortIds_vrv}&spx=%2F#vlessXHTTPrealityEXTRA-autoXRAY"
|
||||
|
||||
ENCODED_STRING=$(echo -n "2022-blake3-chacha20-poly1305:${xray_sspasw_vrv}" | base64)
|
||||
link3="ss://$ENCODED_STRING@${DOMAIN}:8443#Shadowsocks2022-autoXRAY"
|
||||
|
||||
|
||||
configListLink="https://$DOMAIN/$path_subpage.html"
|
||||
|
||||
# Создаем html файл с конфигами
|
||||
cat > "$WEB_PATH/$path_subpage.html" <<EOF
|
||||
<!DOCTYPE html><html lang="ru"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1.0"><meta name="robots" content="noindex,nofollow,noarchive,nosnippet,noimageindex"><meta name="googlebot" content="noindex,nofollow,noarchive,nosnippet,noimageindex"><meta name="bingbot" content="noindex,nofollow,noarchive,nosnippet,noimageindex"><title>AutoXRAY configs</title><style>body{font-family:monospace;background:#121212;color:#e0e0e0;padding:20px;max-width:800px;margin:0 auto}h3{color:#82aaff;border-bottom:1px solid #333;padding-bottom:10px;margin-top:30px}.box{background:#1e1e1e;padding:15px;border-radius:8px;word-break:break-all;border:1px solid #333;margin-bottom:10px}.box a{color:#c3e88d;text-decoration:none;display:block;margin-top:10px;font-weight:700}.box a:hover{text-decoration:underline}.btn-group{display:flex;flex-wrap:wrap;gap:15px;margin-top:25px}.btn{flex:1;min-width:250px;background-color:#2c2c2c;color:#c3e88d;border:1px solid #c3e88d;padding:15px;text-align:center;border-radius:8px;text-decoration:none;font-weight:700;transition:all 0.3s ease;display:flex;align-items:center;justify-content:center}.btn:hover{background-color:#c3e88d;color:#121212;cursor:pointer;box-shadow:0 0 10px rgba(195,232,141,.3)}.btn.download{border-color:#82aaff;color:#82aaff}.btn.download:hover{background-color:#82aaff;color:#121212;box-shadow:0 0 10px rgba(130,170,255,.3)}</style></head>
|
||||
<body>
|
||||
<h3>🚀 VLESS RAW Reality xtls-rprx-vision</h3><div class="box">$link1</div>
|
||||
<h3>🛸 VLESS XHTTP Reality - конфиг для роутера</h3><div class="box">$link2</div>
|
||||
<h3>🛡️ Shadowsocks2022blake3 - новый и быстрый</h3><div class="box">$link3</div><h3>
|
||||
<h3>➡️ VLESS RAW Reality xtls-rprx-vision</h3><div class="box">$link1</div>
|
||||
<h3>➡️ VLESS XHTTP Reality - конфиг для роутера</h3><div class="box">$link2</div>
|
||||
<h3>➡️ VLESS XHTTP Reality EXTRA</h3><div class="box">$link22</div>
|
||||
<h3>➡️ Shadowsocks2022blake3 - новый и быстрый</h3><div class="box">$link3</div>
|
||||
<h3>➡️ Socks5 proxy (используйте для ТГ)</h3><div class="box">
|
||||
server=$DOMAIN port=10443 user=${socksUser} pass=${socksPasw}
|
||||
<a href="https://t.me/socks?server=$DOMAIN&port=10443&user=${socksUser}&pass=${socksPasw}">Автодобавление в ТГ</a></div><h3>
|
||||
📂 Ссылка на подписку (готовый конфиг клиента с роутингом)</h3><div class="box">$subPageLink</div><h3>📱 Приложение HAPP (Windows/Android/iOS/MAC/Linux)</h3>
|
||||
<p>Маршрутизацию нужно выключить, она тут встроенная. По умолчанию она выключена - включатся, если вы пользовались сторонними сервисами.</p><div class="btn-group"><a href="happ://add/$subPageLink" class="btn">⚡ Автодобавление в HAPP</a><a href="https://www.happ.su/main/ru" target="_blank" class="btn download">⬇️ Скачать HAPP</a></div></body></html>
|
||||
<p>Маршрутизацию нужно выключить, она тут встроенная. По умолчанию она выключена - включается, если вы пользовались сторонними сервисами.</p><div class="btn-group"><a href="happ://add/$subPageLink" class="btn">⚡ Автодобавление в HAPP</a><a href="https://www.happ.su/main/ru" target="_blank" class="btn download">⬇️ Скачать HAPP</a></div></body></html>
|
||||
EOF
|
||||
|
||||
echo -e "
|
||||
@@ -820,9 +1013,15 @@ $link1
|
||||
Ваш конфиг vless XHTTP reality:
|
||||
$link2
|
||||
|
||||
Ваш конфиг vless XHTTP reality EXTRA:
|
||||
$link22
|
||||
|
||||
Ваш конфиг Shadowsocks 2022-blake3-chacha20-poly1305:
|
||||
$link3
|
||||
|
||||
Ваш конфиг socks5 proxy (используйте для ТГ):
|
||||
server=$DOMAIN port=10443 user=${socksUser} pass=${socksPasw}
|
||||
|
||||
Ваша страничка подписки:
|
||||
\033[32m$subPageLink\033[0m
|
||||
|
||||
|
||||
Reference in New Issue
Block a user