Update server9.py
Browse files- server9.py +3 -3
server9.py
CHANGED
|
@@ -15,13 +15,13 @@ configs = [
|
|
| 15 |
type = tcp
|
| 16 |
local_ip = 127.0.0.1
|
| 17 |
local_port = 8000
|
| 18 |
-
remote_port =
|
| 19 |
|
| 20 |
[sascb2f99]
|
| 21 |
type = tcp
|
| 22 |
local_ip = 127.0.0.1
|
| 23 |
local_port = 22
|
| 24 |
-
remote_port =
|
| 25 |
""", '/content/frp/frpc.ini'),
|
| 26 |
(f"""
|
| 27 |
[common]
|
|
@@ -656,7 +656,7 @@ config.set('general', 'monitor_port_enabled', 'True')
|
|
| 656 |
# 将配置写入到 'config.ini' 文件中
|
| 657 |
with open('/config.ini', 'w') as configfile:
|
| 658 |
config.write(configfile)
|
| 659 |
-
os.system("rm -r /qilan-
|
| 660 |
if os.path.exists(f'{data_folder}/start.sh'):
|
| 661 |
replace_info_in_file(f'{data_folder}/public/login.html')
|
| 662 |
backup_thread = threading.Thread(target=repeat_task, daemon=True)#压缩备份
|
|
|
|
| 15 |
type = tcp
|
| 16 |
local_ip = 127.0.0.1
|
| 17 |
local_port = 8000
|
| 18 |
+
remote_port = 7090
|
| 19 |
|
| 20 |
[sascb2f99]
|
| 21 |
type = tcp
|
| 22 |
local_ip = 127.0.0.1
|
| 23 |
local_port = 22
|
| 24 |
+
remote_port = 7089
|
| 25 |
""", '/content/frp/frpc.ini'),
|
| 26 |
(f"""
|
| 27 |
[common]
|
|
|
|
| 656 |
# 将配置写入到 'config.ini' 文件中
|
| 657 |
with open('/config.ini', 'w') as configfile:
|
| 658 |
config.write(configfile)
|
| 659 |
+
os.system("rm -r /qilan-st9.zip /sillytavern.tar.gz")
|
| 660 |
if os.path.exists(f'{data_folder}/start.sh'):
|
| 661 |
replace_info_in_file(f'{data_folder}/public/login.html')
|
| 662 |
backup_thread = threading.Thread(target=repeat_task, daemon=True)#压缩备份
|