Pārlūkot izejas kodu

Longer timeouts

Bob Mottram 8 gadus atpakaļ
vecāks
revīzija
3201d4886f
1 mainītis faili ar 14 papildinājumiem un 0 dzēšanām
  1. 14
    0
      src/freedombone-app-mediagoblin

+ 14
- 0
src/freedombone-app-mediagoblin Parādīt failu

@@ -319,6 +319,13 @@ function install_mediagoblin {
319 319
         nginx_limits $MEDIAGOBLIN_DOMAIN_NAME 800m
320 320
         nginx_keybase $MEDIAGOBLIN_DOMAIN_NAME
321 321
         echo '' >> /etc/nginx/sites-available/$MEDIAGOBLIN_DOMAIN_NAME
322
+        echo '    client_header_timeout 10m;' >> /etc/nginx/sites-available/$MEDIAGOBLIN_DOMAIN_NAME
323
+        echo '    client_body_timeout 10m;' >> /etc/nginx/sites-available/$MEDIAGOBLIN_DOMAIN_NAME
324
+        echo '    send_timeout 10m;' >> /etc/nginx/sites-available/$MEDIAGOBLIN_DOMAIN_NAME
325
+        echo '' >> /etc/nginx/sites-available/$MEDIAGOBLIN_DOMAIN_NAME
326
+        echo '    fastcgi_read_timeout 600;' >> /etc/nginx/sites-available/$MEDIAGOBLIN_DOMAIN_NAME
327
+        echo '    fastcgi_send_timeout 600;' >> /etc/nginx/sites-available/$MEDIAGOBLIN_DOMAIN_NAME
328
+        echo '' >> /etc/nginx/sites-available/$MEDIAGOBLIN_DOMAIN_NAME
322 329
         echo '    gzip on;' >> /etc/nginx/sites-available/$MEDIAGOBLIN_DOMAIN_NAME
323 330
         echo '    gzip_min_length 1024;' >> /etc/nginx/sites-available/$MEDIAGOBLIN_DOMAIN_NAME
324 331
         echo '    gzip_buffers 4 32k;' >> /etc/nginx/sites-available/$MEDIAGOBLIN_DOMAIN_NAME
@@ -368,6 +375,13 @@ function install_mediagoblin {
368 375
     function_check nginx_limits
369 376
     nginx_limits $MEDIAGOBLIN_DOMAIN_NAME 800m
370 377
     echo '' >> /etc/nginx/sites-available/$MEDIAGOBLIN_DOMAIN_NAME
378
+    echo '    client_header_timeout 10m;' >> /etc/nginx/sites-available/$MEDIAGOBLIN_DOMAIN_NAME
379
+    echo '    client_body_timeout 10m;' >> /etc/nginx/sites-available/$MEDIAGOBLIN_DOMAIN_NAME
380
+    echo '    send_timeout 10m;' >> /etc/nginx/sites-available/$MEDIAGOBLIN_DOMAIN_NAME
381
+    echo '' >> /etc/nginx/sites-available/$MEDIAGOBLIN_DOMAIN_NAME
382
+    echo '    fastcgi_read_timeout 600;' >> /etc/nginx/sites-available/$MEDIAGOBLIN_DOMAIN_NAME
383
+    echo '    fastcgi_send_timeout 600;' >> /etc/nginx/sites-available/$MEDIAGOBLIN_DOMAIN_NAME
384
+    echo '' >> /etc/nginx/sites-available/$MEDIAGOBLIN_DOMAIN_NAME
371 385
     echo '    gzip on;' >> /etc/nginx/sites-available/$MEDIAGOBLIN_DOMAIN_NAME
372 386
     echo '    gzip_min_length 1024;' >> /etc/nginx/sites-available/$MEDIAGOBLIN_DOMAIN_NAME
373 387
     echo '    gzip_buffers 4 32k;' >> /etc/nginx/sites-available/$MEDIAGOBLIN_DOMAIN_NAME