fix: improve API error handling, add fallback UI, and optimize Nginx connection settings
This commit is contained in:
+19
-1
@@ -4,6 +4,14 @@ server {
|
||||
root /var/www/public;
|
||||
index index.php index.html;
|
||||
|
||||
# Keep-alive ve connection ayarları (bağlantı birikmesini önlemek için)
|
||||
keepalive_timeout 65;
|
||||
keepalive_requests 100;
|
||||
client_max_body_size 20M;
|
||||
client_body_timeout 60s;
|
||||
client_header_timeout 60s;
|
||||
send_timeout 60s;
|
||||
|
||||
# HTTPS için proxy headers
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_set_header X-Forwarded-Port $server_port;
|
||||
@@ -31,8 +39,18 @@ server {
|
||||
|
||||
# Timeout ayarları
|
||||
fastcgi_read_timeout 300;
|
||||
fastcgi_connect_timeout 300;
|
||||
fastcgi_connect_timeout 60;
|
||||
fastcgi_send_timeout 300;
|
||||
|
||||
# FastCGI keep-alive ve buffer ayarları (bağlantı birikmesini önlemek için)
|
||||
fastcgi_keep_conn on;
|
||||
fastcgi_buffering on;
|
||||
fastcgi_buffer_size 4k;
|
||||
fastcgi_buffers 8 4k;
|
||||
fastcgi_busy_buffers_size 8k;
|
||||
|
||||
# Connection pool ayarları
|
||||
fastcgi_max_temp_file_size 0;
|
||||
}
|
||||
|
||||
# Gizli dosyaları engelle
|
||||
|
||||
Reference in New Issue
Block a user