# KANY24 — Configuration Nginx + PHP-FPM 8.3 (Production TLS) limit_req_zone $binary_remote_addr zone=kany24_api:10m rate=30r/s; server { listen 443 ssl http2; server_name api.kany24.africa app.kany24.africa; root /var/www/kany24/public; index index.php; ssl_protocols TLSv1.2 TLSv1.3; add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always; add_header X-Content-Type-Options "nosniff" always; add_header Referrer-Policy "strict-origin-when-cross-origin" always; location /api/v1/ { limit_req zone=kany24_api burst=60 nodelay; try_files $uri /index.php?$query_string; } location / { try_files $uri $uri/ /index.php?$query_string; } location ~ \.php$ { include fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_pass unix:/run/php/php8.3-fpm.sock; fastcgi_hide_header X-Powered-By; } location ~ /\.(env|git) { deny all; } }