Add files via upload

This commit is contained in:
xVRVx
2026-02-03 23:03:25 +03:00
committed by GitHub
parent 3fafa3fc21
commit d39c7f0765

View File

@@ -72,7 +72,7 @@ SID="${params[sid]}"; echo "SID=$SID"
echo "Обновление и установка необходимых пакетов..."
apt update && apt install -y jq dnsutils
apt update && apt install curl jq dnsutils -y
LOCAL_IP=$(hostname -I | awk '{print $1}')
@@ -91,6 +91,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