fix: things
This commit is contained in:
@@ -47,6 +47,10 @@ coverage/
|
||||
.idea/
|
||||
.vscode/
|
||||
*.code-workspace
|
||||
.cursor
|
||||
.editorconfig
|
||||
.junie
|
||||
.mcp*
|
||||
|
||||
# Git files
|
||||
.git
|
||||
@@ -105,3 +109,5 @@ Desktop.ini
|
||||
/.htaccess
|
||||
/nginx.conf
|
||||
/.docker/
|
||||
|
||||
docker-compose.yml
|
||||
@@ -21,6 +21,7 @@ nginx -t || { echo "[entrypoint] nginx config test failed" >&2; cat /var/log/ngi
|
||||
php artisan config: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
|
||||
|
||||
@@ -5,20 +5,21 @@ server {
|
||||
root /var/www/html/public;
|
||||
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)$ {
|
||||
expires 7d;
|
||||
add_header Cache-Control "public, max-age=604800, immutable";
|
||||
try_files $uri =404;
|
||||
access_log off;
|
||||
}
|
||||
|
||||
# Main application entry point
|
||||
# Haupt-Entry-Point (Laravel)
|
||||
location / {
|
||||
try_files $uri $uri/ /index.php?$query_string;
|
||||
}
|
||||
|
||||
# PHP processing
|
||||
location ~ \.php$ {
|
||||
# PHP-FPM Verarbeitung
|
||||
location ~ \.php$ {
|
||||
include fastcgi_params;
|
||||
fastcgi_index index.php;
|
||||
fastcgi_pass 127.0.0.1:9000;
|
||||
@@ -28,17 +29,17 @@ location ~ \.php$ {
|
||||
fastcgi_buffering on;
|
||||
fastcgi_buffers 16 16k;
|
||||
fastcgi_buffer_size 32k;
|
||||
}
|
||||
}
|
||||
|
||||
# Client upload size
|
||||
# Maximale Client Upload-Größe
|
||||
client_max_body_size 64m;
|
||||
|
||||
# Security headers
|
||||
# Sicherheits-Header
|
||||
add_header X-Frame-Options "SAMEORIGIN" always;
|
||||
add_header X-Content-Type-Options "nosniff" always;
|
||||
add_header Referrer-Policy "strict-origin-when-cross-origin" always;
|
||||
|
||||
# Gzip compression
|
||||
# Gzip-Kompression
|
||||
gzip on;
|
||||
gzip_comp_level 5;
|
||||
gzip_min_length 256;
|
||||
|
||||
Reference in New Issue
Block a user