server:
  port: "${MUSIO_SERVER_PORT:18765}"
  address: "${MUSIO_SERVER_HOST:127.0.0.1}"

management:
  endpoints:
    web:
      exposure:
        include: health,info

logging:
  file:
    name: "${MUSIO_BACKEND_LOG_FILE:${user.home}/.musio/logs/musio-backend.log}"

musio:
  config:
    path: "${MUSIO_CONFIG:${user.home}/.musio/config.toml}"
  ai:
    provider: "${MUSIO_AI_PROVIDER:openai-compatible}"
    base-url: "${MUSIO_AI_BASE_URL:http://127.0.0.1:11434/v1}"
    api-key: "${MUSIO_AI_API_KEY:}"
    model: "${MUSIO_AI_MODEL:qwen2.5:7b}"
    temperature: "${MUSIO_AI_TEMPERATURE:0.7}"
    max-tokens: "${MUSIO_AI_MAX_TOKENS:2048}"
  cors:
    allowed-origins: "${MUSIO_CORS_ALLOWED_ORIGINS:http://127.0.0.1:18766,http://localhost:18766}"
  providers:
    qqmusic:
      sidecar-base-url: "${MUSIO_QQMUSIC_SIDECAR_BASE_URL:http://127.0.0.1:18767}"
      allow-static-manifest-fallback: "${MUSIO_QQMUSIC_ALLOW_STATIC_MANIFEST_FALLBACK:false}"
  storage:
    home: "${MUSIO_STORAGE_HOME:${user.home}/.musio}"
  sources:
    selected: "${MUSIO_SELECTED_SOURCES:qqmusic}"
    active: "${MUSIO_ACTIVE_SOURCE:qqmusic}"
