Add files via upload

This commit is contained in:
xVRVx
2026-02-03 23:01:04 +03:00
committed by GitHub
parent bb28da5adb
commit 3fafa3fc21
2 changed files with 26 additions and 2 deletions

View File

@@ -81,7 +81,7 @@ SPX="${params[spx]}"; echo "SPX=$SPX"
echo "Обновление и установка необходимых пакетов..."
apt update && apt install -y jq dnsutils
apt update && apt install curl jq dnsutils -y
LOCAL_IP=$(hostname -I | awk '{print $1}')
@@ -100,6 +100,18 @@ if [ "$LOCAL_IP" != "$DNS_IP" ]; then
fi
# Включаем BBR
bbr=$(sysctl -a | grep net.ipv4.tcp_congestion_control)
if [ "$bbr" = "net.ipv4.tcp_congestion_control = bbr" ]; then
echo "BBR уже запущен"
else
echo "net.core.default_qdisc=fq" >> /etc/sysctl.d/99-autoXRAY.conf
echo "net.ipv4.tcp_congestion_control=bbr" /etc/sysctl.d/99-autoXRAY.conf
sysctl --system
echo "BBR активирован"
fi
apt install nginx -y
systemctl enable --now nginx