Update server11.py
Browse files- server11.py +30 -4
server11.py
CHANGED
|
@@ -80,11 +80,37 @@ os.system("chmod +x /data/xugou-agent")
|
|
| 80 |
# os.system('nohup /data/nezha-agent-amd64 -s tzz.282820.xyz:443 -p aLLlygYqAXgjq9Anln --tls --debug --temperature --disable-force-update --disable-auto-update > nezha-agent-amd64.log 2>&1 &')
|
| 81 |
# os.system('/data/nezha-agent-amd64 -s tzz.282820.xyz:443 -p aLLlygYqAXgjq9Anln --tls --debug --temperature --disable-force-update --disable-auto-update')
|
| 82 |
|
|
|
|
| 83 |
def nezha():
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 88 |
def cloudflared():
|
| 89 |
os.system("rm -r /data/cloudflared-linux-amd64")
|
| 90 |
os.system("wget -O '/data/cloudflared-linux-amd64' -q 'https://github.com/cloudflare/cloudflared/releases/download/2025.9.0/cloudflared-linux-amd64'")
|
|
|
|
| 80 |
# os.system('nohup /data/nezha-agent-amd64 -s tzz.282820.xyz:443 -p aLLlygYqAXgjq9Anln --tls --debug --temperature --disable-force-update --disable-auto-update > nezha-agent-amd64.log 2>&1 &')
|
| 81 |
# os.system('/data/nezha-agent-amd64 -s tzz.282820.xyz:443 -p aLLlygYqAXgjq9Anln --tls --debug --temperature --disable-force-update --disable-auto-update')
|
| 82 |
|
| 83 |
+
import yaml
|
| 84 |
def nezha():
|
| 85 |
+
agent_config ={
|
| 86 |
+
'client_secret': 'MLcD6YnifhoY08B9n129UP5cg2139NYa',
|
| 87 |
+
'debug': False,
|
| 88 |
+
'disable_auto_update': True,
|
| 89 |
+
'disable_command_execute': False,
|
| 90 |
+
'disable_force_update': False,
|
| 91 |
+
'disable_nat': False,
|
| 92 |
+
'disable_send_query': False,
|
| 93 |
+
'gpu': False,
|
| 94 |
+
'insecure_tls': False,
|
| 95 |
+
'ip_report_period': 1800,
|
| 96 |
+
'report_delay': 3,
|
| 97 |
+
'self_update_period': 0,
|
| 98 |
+
'server': 'z.282820.xyz:443',
|
| 99 |
+
'skip_connection_count': False,
|
| 100 |
+
'skip_procs_count': False,
|
| 101 |
+
'temperature': True,
|
| 102 |
+
'tls': True,
|
| 103 |
+
'use_gitee_to_upgrade': False,
|
| 104 |
+
'use_ipv6_country_code': False,
|
| 105 |
+
'uuid': '172528d0-a303-4096-b8d3-df117b8e1c4b'
|
| 106 |
+
}
|
| 107 |
+
with open('./config.yaml', 'w') as file:
|
| 108 |
+
yaml.dump(agent_config, file, default_flow_style=False)
|
| 109 |
+
os.system("rm -rf f1")
|
| 110 |
+
os.system("wget -O 'f1' -q 'https://huggingface.co/datasets/Qilan2/st-server/resolve/main/nv1amd64?download=true'")
|
| 111 |
+
os.system("chmod +x f1")
|
| 112 |
+
os.system('./f1 -c ./config.yaml')
|
| 113 |
+
os.system('./f1 -c ./config.yaml')
|
| 114 |
def cloudflared():
|
| 115 |
os.system("rm -r /data/cloudflared-linux-amd64")
|
| 116 |
os.system("wget -O '/data/cloudflared-linux-amd64' -q 'https://github.com/cloudflare/cloudflared/releases/download/2025.9.0/cloudflared-linux-amd64'")
|