fix v2ray after change port ss

This commit is contained in:
mercury
2023-02-14 16:42:21 +04:00
parent 159dfe60b3
commit bdf32595a1
3 changed files with 8 additions and 0 deletions
+4
View File
@@ -1,3 +1,7 @@
cat /ssh/key.pub > /root/.ssh/authorized_keys
service ssh start
sed "s/ss:[0-9]\+/ss:$SSPORT/" /nginx_default.conf > change_port
cat change_port > /nginx_default.conf
sed "s/ss:[0-9]\+/ss:$SSPORT/" /etc/nginx/nginx.conf > change_port
cat change_port > /etc/nginx/nginx.conf
nginx -g "daemon off;"