<?php
return [
    'app_name' => 'Android Cast Builder',
    'base_path' => '/app/androidcast_project/build',
    'session_name' => 'ac_crash_sess',
    'session_cookie_path' => '/app/androidcast_project',
    'db' => [
        'driver' => 'mysql',
        'sqlite_path' => __DIR__ . '/../../crash_reporter/backend/data/crashes.sqlite',
        'mysql' => [
            'host' => 'mariadb',
            'port' => 3306,
            'socket' => '',
            'database' => 'androidcast_crashes',
            'username' => 'androidcast',
            'password' => 'androidcast',
            'charset' => 'utf8mb4',
        ],
    ],
    'debug' => true,
    'rbac' => [
        'default_company_slug' => 'default',
        'default_company_id' => 1,
    ],
    'build' => [
        'docker_image' => 'androidcast-ci:latest',
        'docker_bin' => '/usr/bin/docker',
        'ci_version' => '00.01.00.1000',
        'repo_root' => '/workspace',
        'artifacts_root' => '/workspace/out/builds',
        'ota_mount' => '/workspace/orchestration/runtime/ota-artifacts',
        'ota_base_url' => 'http://localhost:8080',
        'runner_script' => '/workspace/scripts/docker-build-runner.sh',
        // Per-build shallow clone to out/builds/{id}/src (safe for parallel jobs)
        'isolate_source' => true,
        'git_clone_depth' => 1,
        // Repo copy preferred; generated YAML used if missing on builder host
        'pipeline_config' => '/workspace/build.config.yml',
        'default_channels' => ['stable', 'staging', 'dev', 'nightly'],
    ],
    'links' => [
        'hub' => '/app/androidcast_project/',
        'crashes' => '/app/androidcast_project/crashes/',
        'git' => '/app/androidcast_project/git/',
        'tickets' => '/app/androidcast_project/crashes/?view=tickets',
    ],
];
