Enable Discovery debug logging for production troubleshooting
- Add DISCOVERY_LOG_LEVEL=debug - Add DISCOVERY_SHOW_PROGRESS=true - Temporary changes for debugging InitializerProcessor fixes on production
This commit is contained in:
@@ -189,15 +189,18 @@ server {
|
||||
add_header Cache-Control "no-cache, must-revalidate";
|
||||
}
|
||||
|
||||
# Caching Header für statische Dateien
|
||||
#location ~* \.(jpg|jpeg|png|gif|ico|svg|woff|woff2|ttf|eot)$ {
|
||||
# expires 1y;
|
||||
# add_header Cache-Control "public, immutable, max-age=31536000";
|
||||
#}
|
||||
# Caching Header für statische Dateien ohne Rate-Limiting
|
||||
location ~* \.(jpg|jpeg|png|gif|ico|svg|woff|woff2|ttf|eot)$ {
|
||||
expires 1y;
|
||||
add_header Cache-Control "public, immutable, max-age=31536000";
|
||||
# Keine Rate-Limits für statische Dateien
|
||||
}
|
||||
|
||||
location ~* \.(css|js)$ {
|
||||
# Assets ohne Rate-Limiting für ES6 Module Performance
|
||||
location ~* \.(css|js|map)$ {
|
||||
expires 1w;
|
||||
add_header Cache-Control "public, max-age=604800";
|
||||
# Keine Rate-Limits für statische Assets
|
||||
}
|
||||
|
||||
# location ~* \.(json|xml)$ {
|
||||
@@ -216,6 +219,12 @@ server {
|
||||
# Wichtig: APP_ENV an PHP weitergeben
|
||||
fastcgi_param APP_ENV $env_mode;
|
||||
|
||||
# HTTP Headers für SPA-Support weitergeben
|
||||
fastcgi_param HTTP_X_REQUESTED_WITH $http_x_requested_with;
|
||||
fastcgi_param HTTP_X_SPA_REQUEST $http_x_spa_request;
|
||||
fastcgi_param HTTP_CONTENT_TYPE $content_type;
|
||||
fastcgi_param HTTP_ACCEPT $http_accept;
|
||||
|
||||
# Timeout-Einstellungen
|
||||
fastcgi_read_timeout 60s;
|
||||
fastcgi_connect_timeout 60s;
|
||||
@@ -250,7 +259,8 @@ server {
|
||||
}
|
||||
|
||||
server_tokens off;
|
||||
limit_req zone=mylimit burst=20 nodelay;
|
||||
# Massiv erhöhter Burst für ES6 Module mit 18+ parallelen Requests
|
||||
limit_req zone=mylimit burst=100 nodelay;
|
||||
|
||||
location ~* /(?:uploads|files)/.*\.php$ {
|
||||
deny all;
|
||||
@@ -263,19 +273,6 @@ server {
|
||||
return 200 'pong';
|
||||
}
|
||||
|
||||
location = /health {
|
||||
if ($block_health) {
|
||||
return 404;
|
||||
}
|
||||
|
||||
try_files /health.php =404;
|
||||
|
||||
allow 127.0.0.1; # Lokal erlaubt (Ansible, Docker, Monitoring intern)
|
||||
allow ::1;
|
||||
allow 192.168.0.0/16; # Optional: internes Netz (z.B. für internen Loadbalancer)
|
||||
deny all;
|
||||
error_page 403 =404;
|
||||
}
|
||||
|
||||
|
||||
error_page 404 /errors/404.html;
|
||||
|
||||
@@ -19,8 +19,8 @@ http {
|
||||
# Server-Tokens für Sicherheit ausblenden
|
||||
server_tokens off;
|
||||
|
||||
# Rate-Limiting
|
||||
limit_req_zone $binary_remote_addr zone=mylimit:10m rate=10r/s;
|
||||
# Rate-Limiting - Hochoptimiert für ES6 Module mit massiv parallelen Requests
|
||||
limit_req_zone $binary_remote_addr zone=mylimit:10m rate=300r/s;
|
||||
|
||||
# Logging-Format
|
||||
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
|
||||
|
||||
Reference in New Issue
Block a user