This commit is contained in:
Magnus Root 2026-06-02 11:50:43 +03:00
parent 2698cc87d8
commit 25c624a541

10
yarx.sh
View file

@ -197,7 +197,7 @@ echo "Для установки hysterya Вам нужно иметь свой
read -p "Вы хотите установить HYSTERIA2 (Y/N)?: " HYSTERIAYN read -p "Вы хотите установить HYSTERIA2 (Y/N)?: " HYSTERIAYN
if [ $HYSTERIAYN = "Y" ] || [ $HYSTERIAYN = "y" ]; then if [ $HYSTERIAYN = "Y" ] || [ $HYSTERIAYN = "y" ]; then
curl -fsSL https://get.hy2.sh/ > hysterya.sh curl -fsSL https://get.hy2.sh/ > hysterya.sh
chmod +x hysterya.sh chmod +x hysteria.sh
sudo ./hysterya.sh sudo ./hysterya.sh
read -p "Введите Ваш домен: " HYSTERIADOMEN read -p "Введите Ваш домен: " HYSTERIADOMEN
read -p "Введите Ваш пароль от пользователя Hysteria: " HYSTERIAPASS read -p "Введите Ваш пароль от пользователя Hysteria: " HYSTERIAPASS
@ -207,7 +207,7 @@ if [ $HYSTERIAYN = "Y" ] || [ $HYSTERIAYN = "y" ]; then
read -p "Введите Ваш пароль от обфускатора Salamander: " SALAMANDERPASS read -p "Введите Ваш пароль от обфускатора Salamander: " SALAMANDERPASS
sudo rm /etc/hysteria/config.yaml sudo rm /etc/hysteria/config.yaml
sudo tee /etc/hysteria/config.yaml <<EOF sudo tee /etc/hysteria/config.yaml <<EOF
listen: :443 listen: :8443
acme: acme:
domains: domains:
@ -253,7 +253,7 @@ EOF
EOF EOF
sudo rm /etc/hysteria/config.yaml sudo rm /etc/hysteria/config.yaml
sudo tee /etc/hysteria/config.yaml <<EOF sudo tee /etc/hysteria/config.yaml <<EOF
listen: :443 listen: :8443
acme: acme:
domains: domains:
@ -269,14 +269,14 @@ EOF
file: file:
dir: /var/www/masq dir: /var/www/masq
listenHTTP: :80 listenHTTP: :80
listenHTTPS: :443 listenHTTPS: :8443
forceHTTPS: true forceHTTPS: true
EOF EOF
fi fi
sudo systemctl restart hysteria-server.service sudo systemctl restart hysteria-server.service
sudo systemctl enable hysteria-server.service sudo systemctl enable hysteria-server.service
sudo tee hysteria-client.yaml <<EOF sudo tee hysteria-client.yaml <<EOF
server: $HYSTERIADOMEN:443 server: $HYSTERIADOMEN:8443
auth: $HYSTERIAPASS auth: $HYSTERIAPASS