Fix
This commit is contained in:
parent
2698cc87d8
commit
25c624a541
1 changed files with 5 additions and 5 deletions
10
yarx.sh
10
yarx.sh
|
|
@ -197,7 +197,7 @@ echo "Для установки hysterya Вам нужно иметь свой
|
|||
read -p "Вы хотите установить HYSTERIA2 (Y/N)?: " HYSTERIAYN
|
||||
if [ $HYSTERIAYN = "Y" ] || [ $HYSTERIAYN = "y" ]; then
|
||||
curl -fsSL https://get.hy2.sh/ > hysterya.sh
|
||||
chmod +x hysterya.sh
|
||||
chmod +x hysteria.sh
|
||||
sudo ./hysterya.sh
|
||||
read -p "Введите Ваш домен: " HYSTERIADOMEN
|
||||
read -p "Введите Ваш пароль от пользователя Hysteria: " HYSTERIAPASS
|
||||
|
|
@ -207,7 +207,7 @@ if [ $HYSTERIAYN = "Y" ] || [ $HYSTERIAYN = "y" ]; then
|
|||
read -p "Введите Ваш пароль от обфускатора Salamander: " SALAMANDERPASS
|
||||
sudo rm /etc/hysteria/config.yaml
|
||||
sudo tee /etc/hysteria/config.yaml <<EOF
|
||||
listen: :443
|
||||
listen: :8443
|
||||
|
||||
acme:
|
||||
domains:
|
||||
|
|
@ -253,7 +253,7 @@ EOF
|
|||
EOF
|
||||
sudo rm /etc/hysteria/config.yaml
|
||||
sudo tee /etc/hysteria/config.yaml <<EOF
|
||||
listen: :443
|
||||
listen: :8443
|
||||
|
||||
acme:
|
||||
domains:
|
||||
|
|
@ -269,14 +269,14 @@ EOF
|
|||
file:
|
||||
dir: /var/www/masq
|
||||
listenHTTP: :80
|
||||
listenHTTPS: :443
|
||||
listenHTTPS: :8443
|
||||
forceHTTPS: true
|
||||
EOF
|
||||
fi
|
||||
sudo systemctl restart hysteria-server.service
|
||||
sudo systemctl enable hysteria-server.service
|
||||
sudo tee hysteria-client.yaml <<EOF
|
||||
server: $HYSTERIADOMEN:443
|
||||
server: $HYSTERIADOMEN:8443
|
||||
|
||||
auth: $HYSTERIAPASS
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue