Skip to content

Commit 492b9c2

Browse files
committed
Update nginx.conf
1 parent ebf8479 commit 492b9c2

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

  • resources/modules/Nginx/ospanel_data/default/templates

resources/modules/Nginx/ospanel_data/default/templates/nginx.conf

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,8 @@ autoindex_exact_size off;
264264
charset utf-8;
265265
charset_types application/atom+xml application/json application/ld+json application/rss+xml application/geo+json application/xml application/rdf+xml application/javascript application/wasm application/manifest+json application/x-web-app-manifest+json text/cache-manifest text/css text/csv text/plain text/x-component text/markdown text/calendar text/vcard text/vtt application/rtf application/pdf application/x-x509-ca-cert application/xhtml+xml application/xslt+xml application/schema+json;
266266
client_body_buffer_size 64k;
267-
client_max_body_size 128m;
267+
client_header_timeout 10s;
268+
client_max_body_size 160m;
268269
# ignore_invalid_headers off;
269270
index index.php index.html index.htm;
270271
keepalive_timeout 15s;
@@ -275,7 +276,8 @@ large_client_header_buffers 128 4k;
275276
open_log_file_cache max=1024;
276277
reset_timedout_connection on;
277278
# resolver 1.1.1.1 1.0.0.1 8.8.8.8 8.8.4.4 ipv6=off;
278-
resolver_timeout 15s;
279+
resolver_timeout 5s;
280+
send_timeout 30s;
279281
server_names_hash_bucket_size 64;
280282
server_names_hash_max_size 4096;
281283
server_tokens off;
@@ -291,25 +293,23 @@ variables_hash_max_size 4096;
291293

292294
fastcgi_buffering on;
293295
fastcgi_buffers 256 4k;
294-
fastcgi_connect_timeout 15s;
296+
fastcgi_connect_timeout 5s;
295297
fastcgi_ignore_client_abort off;
296298
fastcgi_index index.php;
297299
fastcgi_intercept_errors on;
298-
fastcgi_read_timeout 10m;
299-
fastcgi_send_timeout 10m;
300+
fastcgi_read_timeout 15m;
300301

301302
#--------------------------------
302303
# Proxy
303304
#--------------------------------
304305

305306
proxy_buffering on;
306307
proxy_buffers 256 4k;
307-
proxy_connect_timeout 15s;
308+
proxy_connect_timeout 5s;
308309
proxy_ignore_client_abort off;
309310
proxy_intercept_errors on;
310311
proxy_http_version 1.1;
311-
proxy_read_timeout 10m;
312-
proxy_send_timeout 10m;
312+
proxy_read_timeout 15m;
313313

314314
#--------------------------------
315315
# SSL

0 commit comments

Comments
 (0)