From af98ff33e2383851b4ecc608ee9d1817626d44a6 Mon Sep 17 00:00:00 2001 From: Matthias Linhuber Date: Thu, 13 Jan 2022 10:37:52 +0100 Subject: [PATCH] Make nginx timeouts configurable A longer timeout might be needed to support the repository export of large courses. See https://github.com/ls1intum/Artemis/issues/4454 for details. --- roles/proxy/defaults/main.yml | 6 ++++++ roles/proxy/templates/nginx_timeouts.conf.j2 | 8 ++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/roles/proxy/defaults/main.yml b/roles/proxy/defaults/main.yml index 546d87c..2ae794f 100644 --- a/roles/proxy/defaults/main.yml +++ b/roles/proxy/defaults/main.yml @@ -35,3 +35,9 @@ proxy_generate_dh_param: true # Used for the /mailto enpoint - Has to be a valid mail address. proxy_mailto: + + +proxy_send_timeout: "900s" +proxy_read_timeout: "900s" +fastcgi_send_timeout: "900s" +fastcgi_read_timeout: "900s" diff --git a/roles/proxy/templates/nginx_timeouts.conf.j2 b/roles/proxy/templates/nginx_timeouts.conf.j2 index 501f879..edf43aa 100644 --- a/roles/proxy/templates/nginx_timeouts.conf.j2 +++ b/roles/proxy/templates/nginx_timeouts.conf.j2 @@ -1,6 +1,6 @@ {{ ansible_managed | comment }} -proxy_send_timeout 900s; -proxy_read_timeout 900s; -fastcgi_send_timeout 900s; -fastcgi_read_timeout 900s; +proxy_send_timeout {{ proxy_send_timeout }}; +proxy_read_timeout {{ proxy_read_timeout }}; +fastcgi_send_timeout {{ fastcgi_send_timeout }}; +fastcgi_read_timeout {{ fastcgi_read_timeout }};