瀏覽代碼

Longer timeouts

Bob Mottram 8 年之前
父節點
當前提交
3201d4886f
共有 1 個檔案被更改,包括 14 行新增0 行删除
  1. 14
    0
      src/freedombone-app-mediagoblin

+ 14
- 0
src/freedombone-app-mediagoblin 查看文件

319
         nginx_limits $MEDIAGOBLIN_DOMAIN_NAME 800m
319
         nginx_limits $MEDIAGOBLIN_DOMAIN_NAME 800m
320
         nginx_keybase $MEDIAGOBLIN_DOMAIN_NAME
320
         nginx_keybase $MEDIAGOBLIN_DOMAIN_NAME
321
         echo '' >> /etc/nginx/sites-available/$MEDIAGOBLIN_DOMAIN_NAME
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
         echo '    gzip on;' >> /etc/nginx/sites-available/$MEDIAGOBLIN_DOMAIN_NAME
329
         echo '    gzip on;' >> /etc/nginx/sites-available/$MEDIAGOBLIN_DOMAIN_NAME
323
         echo '    gzip_min_length 1024;' >> /etc/nginx/sites-available/$MEDIAGOBLIN_DOMAIN_NAME
330
         echo '    gzip_min_length 1024;' >> /etc/nginx/sites-available/$MEDIAGOBLIN_DOMAIN_NAME
324
         echo '    gzip_buffers 4 32k;' >> /etc/nginx/sites-available/$MEDIAGOBLIN_DOMAIN_NAME
331
         echo '    gzip_buffers 4 32k;' >> /etc/nginx/sites-available/$MEDIAGOBLIN_DOMAIN_NAME
368
     function_check nginx_limits
375
     function_check nginx_limits
369
     nginx_limits $MEDIAGOBLIN_DOMAIN_NAME 800m
376
     nginx_limits $MEDIAGOBLIN_DOMAIN_NAME 800m
370
     echo '' >> /etc/nginx/sites-available/$MEDIAGOBLIN_DOMAIN_NAME
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
     echo '    gzip on;' >> /etc/nginx/sites-available/$MEDIAGOBLIN_DOMAIN_NAME
385
     echo '    gzip on;' >> /etc/nginx/sites-available/$MEDIAGOBLIN_DOMAIN_NAME
372
     echo '    gzip_min_length 1024;' >> /etc/nginx/sites-available/$MEDIAGOBLIN_DOMAIN_NAME
386
     echo '    gzip_min_length 1024;' >> /etc/nginx/sites-available/$MEDIAGOBLIN_DOMAIN_NAME
373
     echo '    gzip_buffers 4 32k;' >> /etc/nginx/sites-available/$MEDIAGOBLIN_DOMAIN_NAME
387
     echo '    gzip_buffers 4 32k;' >> /etc/nginx/sites-available/$MEDIAGOBLIN_DOMAIN_NAME