Remove WireGuard integration from production deployment to simplify infrastructure: - Remove docker-compose-direct-access.yml (VPN-bound services) - Remove VPN-only middlewares from Grafana, Prometheus, Portainer - Remove WireGuard middleware definitions from Traefik - Remove WireGuard IPs (10.8.0.0/24) from Traefik forwarded headers All monitoring services now publicly accessible via subdomains: - grafana.michaelschiemer.de (with Grafana native auth) - prometheus.michaelschiemer.de (with Basic Auth) - portainer.michaelschiemer.de (with Portainer native auth) All services use Let's Encrypt SSL certificates via Traefik.
55 lines
1.4 KiB
PHP
55 lines
1.4 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Application\Website;
|
|
|
|
|
|
use App\Framework\Attributes\Route;
|
|
use App\Framework\Http\Method;
|
|
use App\Framework\Meta\MetaData;
|
|
use App\Framework\Meta\StaticPageMetaResolver;
|
|
use App\Framework\Router\Result\ViewResult;
|
|
use App\Framework\Router\WebRoutes;
|
|
|
|
final readonly class ShowHome
|
|
{
|
|
#[Route(path: '/', method: Method::GET, name: WebRoutes::HOME)]
|
|
public function home(HomeRequest $request, string $test = 'hallo'): ViewResult
|
|
{
|
|
throw new \Exception('test');
|
|
|
|
// Production deployment trigger - scp from /workspace/repo
|
|
$model = new HomeViewModel('Hallo Welt!');
|
|
return new ViewResult(
|
|
template: 'test',
|
|
metaData: new StaticPageMetaResolver(
|
|
title: 'Home',
|
|
description: 'Hallo Welt!',
|
|
)(),
|
|
data: [
|
|
'name' => 'Michael',
|
|
],
|
|
model: $model,
|
|
);
|
|
}
|
|
|
|
#[Route(path: '/epk', name: WebRoutes::EPK)]
|
|
public function epk(string $test = 'hallo'): ViewResult
|
|
{
|
|
return new ViewResult(
|
|
'test',
|
|
new MetaData('EPK'),
|
|
);
|
|
}
|
|
|
|
#[Route(path: '/designsystem')]
|
|
public function designSystem(): ViewResult
|
|
{
|
|
return new ViewResult(
|
|
'designsystem',
|
|
new MetaData('DesignSystem')
|
|
);
|
|
}
|
|
}
|