From 0d4f884c46a2e8219ed08173989b7cb9bbca7b41 Mon Sep 17 00:00:00 2001 From: Paweł Dybiec Date: Mon, 10 Jun 2019 23:01:46 +0200 Subject: Add parameters for proxy keepalive and timeouts --- templates/nginx.conf.j2 | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'templates') diff --git a/templates/nginx.conf.j2 b/templates/nginx.conf.j2 index b8896b7..9261fa0 100644 --- a/templates/nginx.conf.j2 +++ b/templates/nginx.conf.j2 @@ -38,6 +38,12 @@ server { {% endif %} {% if server.proxy is defined %} +{% if server.proxy.keepalive is defined and server.proxy.keepalive %} + proxy_socket_keepalive on; +{% endif %} +{% if server.proxy.timeout is defined %} + proxy_connect_timeout {{ server.proxy.timeout }}; +{% endif %} {% if server.proxy.cache is defined and server.proxy.cache %} proxy_cache cache_{{ short_name }}; proxy_cache_revalidate on; -- cgit 1.4.1