Add files via upload

This commit is contained in:
xVRVx
2025-12-22 22:14:23 +03:00
committed by GitHub
parent 450c0e0932
commit 212bdd10f7
2 changed files with 50 additions and 39 deletions

View File

@@ -404,9 +404,6 @@ cat << 'EOF' | envsubst > "$SCRIPT_DIR/config.json"
EOF
# Создаем JSON конфигурацию клиента
#!/bin/bash
# 1. Функция-шаблон (содержит повторяющуюся часть: Log, DNS, Routing, Inbounds)
print_config() {
local PROXY_OUTBOUND="$1"
local REMARK="$2"
@@ -465,21 +462,6 @@ print_config() {
"geoip:private"
],
"outboundTag": "direct"
},
{
"ip": [
"geoip:!ru"
],
"outboundTag": "proxy"
},
{
"domain": [
"geosite:discord",
"geosite:youtube",
"geosite:tiktok",
"geosite:signal"
],
"outboundTag": "proxy"
}
]
},
@@ -491,6 +473,14 @@ print_config() {
"port": 10808,
"settings": {
"udp": true
},
"sniffing": {
"enabled": true,
"destOverride": [
"http",
"tls",
"quic"
]
}
},
{
@@ -500,6 +490,14 @@ print_config() {
"port": 2080,
"settings": {
"udp": true
},
"sniffing": {
"enabled": true,
"destOverride": [
"http",
"tls",
"quic"
]
}
},
{
@@ -507,7 +505,15 @@ print_config() {
"protocol": "http",
"listen": "127.0.0.1",
"port": 10809
}
},
"sniffing": {
"enabled": true,
"destOverride": [
"http",
"tls",
"quic"
]
}
],
"outbounds": [
$PROXY_OUTBOUND,
@@ -525,8 +531,6 @@ print_config() {
TPL
}
# 2. Определяем уникальные настройки (Outbounds)
# --- Config 1: VLESS Reality + Vision ---
OUT_REALITY_VISION='{
"mux": { "concurrency": -1, "enabled": false },
@@ -639,7 +643,6 @@ OUT_SS='{
}
}'
# 3. Сборка JSON массива и сохранение в файл
(
echo "["
print_config "$OUT_REALITY_VISION" "🇪🇺 vlessRAWrealityXTLS"

View File

@@ -483,22 +483,6 @@ cat << 'EOF' | envsubst > "$WEB_PATH/$path_subpage.json"
"geoip:private"
],
"outboundTag": "direct"
},
{
"type": "field",
"ip": [
"geoip:!ru"
],
"outboundTag": "proxy"
},
{
"domain": [
"geosite:discord",
"geosite:youtube",
"geosite:tiktok",
"geosite:signal"
],
"outboundTag": "proxy"
}
]
},
@@ -510,6 +494,14 @@ cat << 'EOF' | envsubst > "$WEB_PATH/$path_subpage.json"
"port": 10808,
"settings": {
"udp": true
},
"sniffing": {
"enabled": true,
"destOverride": [
"http",
"tls",
"quic"
]
}
},
{
@@ -519,13 +511,29 @@ cat << 'EOF' | envsubst > "$WEB_PATH/$path_subpage.json"
"port": 2080,
"settings": {
"udp": true
},
"sniffing": {
"enabled": true,
"destOverride": [
"http",
"tls",
"quic"
]
}
},
{
"tag": "http-in",
"protocol": "http",
"listen": "127.0.0.1",
"port": 10809
"port": 10809,
"sniffing": {
"enabled": true,
"destOverride": [
"http",
"tls",
"quic"
]
}
}
],
"outbounds": [