All checks were successful
Deploy Feature Branch to Test / deploy (push) Successful in 24s
- Front Controller Pattern mit public/index.php als Einstiegspunkt - Eigenes Routing (App\Core\Router) ohne externes Framework - Controller: HomeController, ImpressumController, DatenschutzController - Views mit gemeinsamem Layout (app/views/layouts/main.php) - PSR-4 Autoloading - Statische Assets nach public/ verschoben - Alte Dateien (index.php, impressum.html, datenschutz.html) geloescht - 301-Redirects fuer alte URLs - PHP 8.5 kompatibel - Apache DocumentRoot auf public/ gesetzt
25 lines
595 B
Nginx Configuration File
Executable File
25 lines
595 B
Nginx Configuration File
Executable File
server {
|
|
listen 80;
|
|
server_name localhost;
|
|
|
|
root /usr/share/nginx/html;
|
|
index haus-schleusingen.html;
|
|
|
|
# Gzip aktivieren
|
|
gzip on;
|
|
gzip_types text/css application/javascript image/svg+xml application/json text/xml;
|
|
gzip_min_length 256;
|
|
gzip_vary on;
|
|
|
|
location / {
|
|
try_files $uri $uri/ /haus-schleusingen.html;
|
|
}
|
|
|
|
# Lange Cache-Dauer für Bilder und statische Assets
|
|
location ~* \.(jpg|jpeg|png|webp|gif|ico|svg|css|js|woff2?)$ {
|
|
expires 30d;
|
|
add_header Cache-Control "public, immutable";
|
|
access_log off;
|
|
}
|
|
}
|