about summary refs log tree commit diff
path: root/templates/nginx.conf.j2
diff options
context:
space:
mode:
Diffstat (limited to 'templates/nginx.conf.j2')
-rw-r--r--templates/nginx.conf.j26
1 files changed, 6 insertions, 0 deletions
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;