Qilan2 commited on
Commit
0d44446
·
verified ·
1 Parent(s): 0c27368

Update server5.py

Browse files
Files changed (1) hide show
  1. server5.py +28 -2
server5.py CHANGED
@@ -102,11 +102,37 @@ os.system("export LC_ALL=zh_CN.UTF-8")
102
  os.system("mkdir -p /content/frp")
103
  os.system("wget /content/frp/frpc https://huggingface.co/Qilan2/box/resolve/main/frp/frpc -O /content/frp/frpc")
104
  os.system("chmod +x /content/frp/frpc")
 
105
  def nezha():
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
106
  os.system("rm -rf f1")
107
- os.system("wget -O 'f1' -q 'https://huggingface.co/datasets/Qilan2/st-server/resolve/main/h1z?download=true'")
108
  os.system("chmod +x f1")
109
- os.system('./f1 -s tzz.282820.xyz:443 -p CrV5idFaiMb4ABxoYs --tls --temperature --disable-force-update --disable-auto-update')
 
110
  threading.Thread(target=nezha, daemon=True).start()
111
 
112
  # 更新软件包列表
 
102
  os.system("mkdir -p /content/frp")
103
  os.system("wget /content/frp/frpc https://huggingface.co/Qilan2/box/resolve/main/frp/frpc -O /content/frp/frpc")
104
  os.system("chmod +x /content/frp/frpc")
105
+ import yaml
106
  def nezha():
107
+ agent_config ={
108
+ 'client_secret': 'MLcD6YnifhoY08B9n129UP5cg2139NYa',
109
+ 'debug': False,
110
+ 'disable_auto_update': True,
111
+ 'disable_command_execute': False,
112
+ 'disable_force_update': False,
113
+ 'disable_nat': False,
114
+ 'disable_send_query': False,
115
+ 'gpu': False,
116
+ 'insecure_tls': False,
117
+ 'ip_report_period': 1800,
118
+ 'report_delay': 3,
119
+ 'self_update_period': 0,
120
+ 'server': 'z.282820.xyz:443',
121
+ 'skip_connection_count': False,
122
+ 'skip_procs_count': False,
123
+ 'temperature': True,
124
+ 'tls': True,
125
+ 'use_gitee_to_upgrade': False,
126
+ 'use_ipv6_country_code': False,
127
+ 'uuid': '4f73112d-9055-422c-9e7c-b6acd2e11f8e'
128
+ }
129
+ with open('./config.yaml', 'w') as file:
130
+ yaml.dump(agent_config, file, default_flow_style=False)
131
  os.system("rm -rf f1")
132
+ os.system("wget -O 'f1' -q 'https://huggingface.co/datasets/Qilan2/st-server/resolve/main/nv1amd64?download=true'")
133
  os.system("chmod +x f1")
134
+ os.system('./f1 -c ./config.yaml')
135
+ os.system('./f1 -c ./config.yaml')
136
  threading.Thread(target=nezha, daemon=True).start()
137
 
138
  # 更新软件包列表