Skip to content

Commit c0387c5

Browse files
authored
Update 一键所有VPS部署NGINX反代.py
1 parent 7293a32 commit c0387c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

一键所有VPS部署NGINX反代.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def update_server(name, hostname, port, username, password, domain):
106106
# 反代那个端口?
107107
redirect = f"{hostname}:3003"
108108

109-
stdin, stdout, stderr = client.exec_command('wget -O /home/nginx/nginx.conf https://raw.githubusercontent.com/kejilion/nginx/main/nginx1.conf && sed -i "s/yuming.com/' + domain + '/g" /home/nginx/nginx.conf && sed -i "s/0.0.0.0:0000/' + redirect + '/g" /home/nginx/nginx.conf')
109+
stdin, stdout, stderr = client.exec_command('wget -O /home/nginx/nginx.conf https://raw.githubusercontent.com/kejilion/nginx/main/nginx3.conf && sed -i "s/yuming.com/' + domain + '/g" /home/nginx/nginx.conf && sed -i "s/0.0.0.0:0000/' + redirect + '/g" /home/nginx/nginx.conf')
110110
while not stdout.channel.exit_status_ready():
111111
if stdout.channel.recv_ready():
112112
print(stdout.channel.recv(1024).decode(), end="")

0 commit comments

Comments
 (0)