Skip to content

Commit

Permalink
Merge pull request #4 from ls1intum/feature/make-nginx-timeouts-confi…
Browse files Browse the repository at this point in the history
…gurable

Make nginx timeouts configurable
  • Loading branch information
Mtze authored Jan 13, 2022
2 parents c027c8e + aa6616d commit 2a65e2d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
6 changes: 6 additions & 0 deletions roles/proxy/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
8 changes: 4 additions & 4 deletions roles/proxy/templates/nginx_timeouts.conf.j2
Original file line number Diff line number Diff line change
@@ -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 }};

0 comments on commit 2a65e2d

Please sign in to comment.