ray:
  # Ray Job server address (head 容器内视角)
  address: "http://127.0.0.1:8265"

  # 共享根路径（容器内统一 /private，对齐生产）
  shared_root: "/private"

  # 强制 driver 落 worker（head 不跑训练）
  entrypoint_num_cpus: 1
  entrypoint_resources:
    worker_node: 1

  # 所有 job 通用 runtime env
  runtime_env:
    env_vars:
      HF_ENDPOINT: "https://hf-mirror.com"
      PYTHONUNBUFFERED: "1"

  # v3.0 先不支持 user code 执行
  user_code_path: "/private/user/code"

service:
  api:
    host: "0.0.0.0"
    port: 8080
  auth:
    token_env: "MVP_INTERNAL_TOKEN"
  sqlite:
    db_path: "/private/common/db/mvp.sqlite3"
  scheduler:
    tick_s: 5
    retry_interval_s: 60
    max_running_tasks: 1

data:
  user_root: "/private/users"
  sftpgo:
    enabled: true
    # Returned to users by GET /api/v2/me. For h1 E2E, usually connect to the host IP.
    host: "127.0.0.1"
    sftp_port: 2022
    # Admin API base should include /api/v2 (SFTPGo OpenAPI server base).
    # From head container, access SFTPGo by service name on the compose network.
    admin_api_base: "http://argus-sftpgo:8080/api/v2"
    admin_user: "admin"
    admin_password_env: "SFTPGO_ADMIN_PASSWORD"
  retention:
    jobs_trash_after_days: 3
    jobs_purge_after_days: 7
    janitor_interval_s: 3600

