fix: things

This commit is contained in:
u00lipp
2025-10-23 13:05:17 +02:00
parent 8c1b86dc9a
commit b7f89e29ca
3 changed files with 26 additions and 18 deletions
+6
View File
@@ -47,6 +47,10 @@ coverage/
.idea/ .idea/
.vscode/ .vscode/
*.code-workspace *.code-workspace
.cursor
.editorconfig
.junie
.mcp*
# Git files # Git files
.git .git
@@ -105,3 +109,5 @@ Desktop.ini
/.htaccess /.htaccess
/nginx.conf /nginx.conf
/.docker/ /.docker/
docker-compose.yml
+1
View File
@@ -21,6 +21,7 @@ nginx -t || { echo "[entrypoint] nginx config test failed" >&2; cat /var/log/ngi
php artisan config:clear php artisan config:clear
php artisan cache:clear php artisan cache:clear
envsubst '$SERVER_NAME' < /etc/nginx/templates/default.conf.template > /etc/nginx/http.d/default.conf
exec /usr/bin/supervisord -n -c /etc/supervisor/supervisord.conf exec /usr/bin/supervisord -n -c /etc/supervisor/supervisord.conf
+9 -8
View File
@@ -5,20 +5,21 @@ server {
root /var/www/html/public; root /var/www/html/public;
index index.php; index index.php;
# Cache-Control for static files # Cache-Control für statische Dateien
location ~* \.(?:ico|css|js|gif|jpe?g|png|svg|woff2?|eot|ttf|otf|webp|avif)$ { location ~* \.(?:ico|css|js|gif|jpe?g|png|svg|woff2?|eot|ttf|otf|webp|avif)$ {
expires 7d; expires 7d;
add_header Cache-Control "public, max-age=604800, immutable"; add_header Cache-Control "public, max-age=604800, immutable";
try_files $uri =404; try_files $uri =404;
access_log off;
} }
# Main application entry point # Haupt-Entry-Point (Laravel)
location / { location / {
try_files $uri $uri/ /index.php?$query_string; try_files $uri $uri/ /index.php?$query_string;
} }
# PHP processing # PHP-FPM Verarbeitung
location ~ \.php$ { location ~ \.php$ {
include fastcgi_params; include fastcgi_params;
fastcgi_index index.php; fastcgi_index index.php;
fastcgi_pass 127.0.0.1:9000; fastcgi_pass 127.0.0.1:9000;
@@ -28,17 +29,17 @@ location ~ \.php$ {
fastcgi_buffering on; fastcgi_buffering on;
fastcgi_buffers 16 16k; fastcgi_buffers 16 16k;
fastcgi_buffer_size 32k; fastcgi_buffer_size 32k;
} }
# Client upload size # Maximale Client Upload-Größe
client_max_body_size 64m; client_max_body_size 64m;
# Security headers # Sicherheits-Header
add_header X-Frame-Options "SAMEORIGIN" always; add_header X-Frame-Options "SAMEORIGIN" always;
add_header X-Content-Type-Options "nosniff" always; add_header X-Content-Type-Options "nosniff" always;
add_header Referrer-Policy "strict-origin-when-cross-origin" always; add_header Referrer-Policy "strict-origin-when-cross-origin" always;
# Gzip compression # Gzip-Kompression
gzip on; gzip on;
gzip_comp_level 5; gzip_comp_level 5;
gzip_min_length 256; gzip_min_length 256;