.env.example 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. # Server Configuration
  2. HOST=0.0.0.0
  3. PORT=3000
  4. WEBHOOK_PATH=/webhook
  5. WEBHOOK_SECRET=
  6. # Logging Configuration
  7. # Log level: DEBUG, INFO, WARN, ERROR (default: INFO)
  8. LOG_LEVEL=INFO
  9. # File Logging Configuration
  10. # Enable file logging (default: false, auto-enabled when running as systemd service)
  11. FILE_LOGGING_ENABLED=false
  12. # Log file path (default: /var/log/agent-manager.log)
  13. LOG_FILE_PATH=/var/log/agent-manager.log
  14. # Maximum log file size in bytes before rotation (default: 10485760 = 10MB)
  15. MAX_LOG_SIZE=10485760
  16. # Maximum number of rotated log files to keep (default: 5)
  17. MAX_LOG_FILES=5
  18. # Queue Configuration
  19. # Enable parallel job processing per repository (default: false)
  20. # When enabled, each Gogs repository gets its own FIFO queue
  21. # This allows jobs from different repositories to run independently
  22. # Recommended for multi-repository setups where jobs can run in parallel
  23. QUEUE_PARALLEL_PER_REPOSITORY=false
  24. # Webhook Event Configuration
  25. # Enable/disable webhook events (commands are configured in commands.json)
  26. # Set to 'true' to enable event handling, 'false' to disable
  27. WEBHOOK_PUSH_ENABLED=true
  28. WEBHOOK_PULL_REQUEST_ENABLED=false
  29. WEBHOOK_CREATE_ENABLED=false
  30. WEBHOOK_DELETE_ENABLED=false
  31. WEBHOOK_RELEASE_ENABLED=false
  32. WEBHOOK_ISSUES_ENABLED=false
  33. WEBHOOK_ISSUE_COMMENT_ENABLED=false
  34. WEBHOOK_GLOBAL_ENABLED=false
  35. # Path Configuration
  36. # Base path for agent-manager installation (defaults to current working directory)
  37. AGENT_MANAGER_PATH=/home/claude/agent-manager
  38. # Workspace path for command execution (used in commands.json)
  39. WORKSPACE_PATH=/workspace
  40. # Scripts path (defaults to ${AGENT_MANAGER_PATH}/scripts if not set)
  41. SCRIPTS_PATH=/home/claude/agent-manager/scripts
  42. # MCP Server Configuration
  43. # Path to gogs-mcp server (used in headless Claude Code mode)
  44. GOGS_MCP_PATH=/data/gogs-mcp/dist/index.js
  45. # SSL Certificate Configuration
  46. # Extra CA certs for servers with incomplete certificate chains
  47. # See README.md "SSL Certificate Chain Fix" section for setup
  48. # NODE_EXTRA_CA_CERTS=/home/claude/.config/agent-manager/certs/extra-ca.pem
  49. # Legacy Command Configuration (deprecated - use commands.json instead)
  50. # These settings are maintained for backward compatibility
  51. # WEBHOOK_PUSH_COMMAND=echo "Push to {{branch}} by {{pusher}} in {{repo}}"
  52. # WEBHOOK_PUSH_FILTER_BRANCH=main
  53. # COMMAND_TIMEOUT=300000
  54. # COMMAND_WORKING_DIR=/workspace