Files
iro2-back-lecture/bootstrap/app.php
kosipov e639968a46 Adapt deployment for Dokploy
Replace the Gitea Actions SSH deploy with a Docker image
(serversideup/php fpm-nginx) and docker-compose setup. Store the
SQLite database inside the persistent storage volume, trust the
reverse proxy, and move admin credentials into config so they work
with cached configuration.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-15 15:39:41 +03:00

25 lines
850 B
PHP

<?php
use Illuminate\Foundation\Application;
use Illuminate\Foundation\Configuration\Exceptions;
use Illuminate\Foundation\Configuration\Middleware;
return Application::configure(basePath: dirname(__DIR__))
->withRouting(
web: __DIR__.'/../routes/web.php',
api: __DIR__.'/../routes/api.php',
commands: __DIR__.'/../routes/console.php',
health: '/up',
)
->withMiddleware(function (Middleware $middleware): void {
// Dokploy (Traefik) терминирует TLS и проксирует запросы в контейнер
$middleware->trustProxies(at: '*');
$middleware->alias([
'file.upload.basic' => \App\Http\Middleware\EnsureFileUploadBasicAuth::class,
]);
})
->withExceptions(function (Exceptions $exceptions): void {
//
})->create();