supervisord.conf 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. [supervisord]
  2. nodaemon=true
  3. logfile=/dev/null
  4. logfile_maxbytes=0
  5. pidfile=/tmp/supervisord.pid
  6. # socket 服务:固定 /var/run/supervisor.sock,与 Debian supervisorctl 默认路径一致
  7. # 修复:此前缺失该段,supervisord 实际 socket 与 supervisorctl 默认路径不符,docker exec supervisorctl status 报 no such file
  8. #
  9. # Socket server: fixed at /var/run/supervisor.sock, matching the Debian supervisorctl default
  10. # Fix: previously missing, the actual socket did not match supervisorctl's default, so docker exec supervisorctl status failed
  11. [unix_http_server]
  12. file=/var/run/supervisor.sock
  13. chmod=0700
  14. # RPC 接口:supervisorctl 的 status/tail/stop 等命令依赖该命名空间注册
  15. # 修复:此前缺失该段,supervisorctl status 报 "did not recognize the supervisor namespace commands"
  16. #
  17. # RPC interface: supervisorctl commands (status/tail/stop) require this namespace registration
  18. # Fix: previously missing, supervisorctl status failed with "did not recognize the supervisor namespace commands"
  19. [rpcinterface:supervisor]
  20. supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
  21. [supervisorctl]
  22. serverurl=unix:///var/run/supervisor.sock
  23. # dsh Web 客户端
  24. # 仅绑定容器内 loopback,不对外暴露
  25. # 注意:不传 --trusted-host(该 CLI 链路在 rc.6 不可靠),trustedHosts 走 cordis.patch.yml
  26. #
  27. # dsh Web client
  28. # Binds only to the in-container loopback, never exposed externally
  29. # Note: --trusted-host is not passed (unreliable in rc.6); trustedHosts goes through cordis.patch.yml
  30. [program:dsh]
  31. command=/usr/local/bin/dsh --profile web --port 3080
  32. # PATH 继承 entrypoint 注入(含 x-cmd 工具目录)
  33. #
  34. # PATH inherits the entrypoint injection (including the x-cmd tool directory)
  35. user=node
  36. environment=HOME="/home/node"
  37. stdout_logfile=/dev/stdout
  38. stdout_logfile_maxbytes=0
  39. stderr_logfile=/dev/stderr
  40. stderr_logfile_maxbytes=0
  41. autorestart=true
  42. startsecs=3
  43. stopwaitsecs=30
  44. # Caddy basic auth 反代
  45. #
  46. # Caddy basic auth reverse proxy
  47. [program:caddy]
  48. command=/usr/bin/caddy run --config /etc/caddy/Caddyfile --adapter caddyfile
  49. # PATH 继承 entrypoint 注入(含 x-cmd 工具目录)
  50. #
  51. # PATH inherits the entrypoint injection (including the x-cmd tool directory)
  52. user=node
  53. environment=HOME="/home/node",XDG_DATA_HOME="/home/node/.local/share"
  54. stdout_logfile=/dev/stdout
  55. stdout_logfile_maxbytes=0
  56. stderr_logfile=/dev/stderr
  57. stderr_logfile_maxbytes=0
  58. autorestart=true
  59. startsecs=2
  60. stopwaitsecs=10