This commit is contained in:
mayunfei committed 2026-12-04 09:44:59 +08:00
commit 5f8428a318
1688 files changed
+39031

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
[program:WeChatBot]
; Supervisor 不能用 ./RecordBot,必须写绝对路径
command = /data/WeChatBot/record-bot/RecordBot/RecordBot
directory = /data/WeChatBot/record-bot/RecordBot
environment = ASPNETCORE_URLS="http://0.0.0.0:5080",ASPNETCORE_ENVIRONMENT="Production",TZ="Asia/Shanghai"
autorestart = true
startsecs = 3
stdout_logfile = /opt/1panel/tools/supervisord/log/WeChatBot.out.log
stderr_logfile = /opt/1panel/tools/supervisord/log/WeChatBot.err.log
stdout_logfile_maxbytes = 2MB
stderr_logfile_maxbytes = 2MB
user = root
priority = 999
numprocs = 1
process_name = %(program_name)s_%(process_num)02d
stopasgroup = true
killasgroup = true
+18
View File
@@ -0,0 +1,18 @@
; 1Panel → 创建守护进程(不要只拷 .conf,要用面板创建或保存为同目录 .ini)
[program:WeChatGateway]
; 若是 bun 编译出的单文件用下面这行;若是 bun run start 则改成 /root/.bun/bin/bun run start
command = /data/WeChatBot/weixin-ilink-gateway/server
directory = /data/WeChatBot/weixin-ilink-gateway
environment = TZ="Asia/Shanghai",PATH="/root/.bun/bin:/usr/local/bin:/usr/bin:/bin"
autorestart = true
startsecs = 3
stdout_logfile = /opt/1panel/tools/supervisord/log/WeChatGateway.out.log
stderr_logfile = /opt/1panel/tools/supervisord/log/WeChatGateway.err.log
stdout_logfile_maxbytes = 2MB
stderr_logfile_maxbytes = 2MB
user = root
priority = 998
numprocs = 1
process_name = %(program_name)s_%(process_num)02d
stopasgroup = true
killasgroup = true