1
0
mirror of git://f0xx.org/android_cast synced 2026-07-29 05:58:14 +03:00

orchestration beginning

This commit is contained in:
Anton Afanasyeu
2026-05-30 17:55:36 +02:00
parent 95f521c4a0
commit a9a9590698
31 changed files with 1238 additions and 27 deletions

View File

@@ -30,6 +30,8 @@ return [
],
],
'session_name' => 'ac_crash_sess',
// Shared login cookie across crashes, build, and other consoles under this path
'session_cookie_path' => '/app/androidcast_project',
// When true, upload API may include a short error hint (do not enable on public prod long-term)
'debug' => false,
// Phase 1 RBAC: anonymous uploads and legacy rows attach to this company

View File

@@ -12,6 +12,8 @@
*/
declare(strict_types=1);
require_once dirname(__DIR__, 2) . '/platform/shared_session.php';
if (!function_exists('session_start')) {
http_response_code(500);
header('Content-Type: text/plain; charset=utf-8');
@@ -27,10 +29,7 @@ if (!is_file($configPath)) {
}
$config = require $configPath;
session_name($config['session_name'] ?? 'ac_crash_sess');
if (session_status() !== PHP_SESSION_ACTIVE) {
session_start();
}
platform_start_session($config['session_name'] ?? 'ac_crash_sess', $config['session_cookie_path'] ?? '/app/androidcast_project');
require_once __DIR__ . '/Database.php';
require_once __DIR__ . '/Rbac.php';

View File

@@ -75,6 +75,15 @@
<span class="nav-label" data-i18n="nav.tickets">Tickets</span>
</a>
</li>
<li>
<a href="/app/androidcast_project/build/"
class="nav-link"
aria-label="Builder"
title="Builder">
<span class="nav-icon nav-icon--git" aria-hidden="true"></span>
<span class="nav-label">Builder</span>
</a>
</li>
</ul>
<div class="nav-locale">
<div class="locale-picker" data-i18n-title="lang.label" title="Language">