diff options
author | Paweł Dybiec <pawel.to.malpa@gmail.com> | 2019-06-10 23:01:46 +0200 |
---|---|---|
committer | Paweł Dybiec <pawel.to.malpa@gmail.com> | 2019-06-10 23:01:46 +0200 |
commit | 0d4f884c46a2e8219ed08173989b7cb9bbca7b41 (patch) | |
tree | b5a41c53a084564b3c83cdb454316053ade35b93 /templates | |
parent | Add error page (diff) |
Add parameters for proxy keepalive and timeouts
Diffstat (limited to 'templates')
-rw-r--r-- | templates/nginx.conf.j2 | 6 |
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; |