diff --git a/templates/haproxy.cfg.tmpl b/templates/haproxy.cfg.tmpl
index 6a754dd2c2093199d8d8250b1b45603fb4225f94..ab848f4ce130ecb192213581c28752f80d3549bc 100644
--- a/templates/haproxy.cfg.tmpl
+++ b/templates/haproxy.cfg.tmpl
@@ -18,7 +18,7 @@ defaults
   compression type text/html text/plain text/css application/javascript
   timeout connect 5000
   timeout client 50000
-  timeout server 50000
+  timeout server 500000
 
 frontend http-in
   bind *:80