From 388f69d2e7d4050fc815d3f7301d3dd7220dc9b3 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Wed, 28 Aug 2019 18:32:36 +0200 Subject: [PATCH] add missing server options --- templates/etc/nginx/sites-available/vhost.j2 | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/templates/etc/nginx/sites-available/vhost.j2 b/templates/etc/nginx/sites-available/vhost.j2 index 52eb98d..371f9b8 100644 --- a/templates/etc/nginx/sites-available/vhost.j2 +++ b/templates/etc/nginx/sites-available/vhost.j2 @@ -32,6 +32,9 @@ server { {% if server.client_max_body_size is defined and server.client_max_body_size %} client_max_body_size {{ server.client_max_body_size }}; {% endif %} + {% if server.send_timeout is defined and server.send_timeout %} + send_timeout {{ server.send_timeout }}; + {% endif %} {% for location in server.locations %} location {{ location.match }} { @@ -47,6 +50,18 @@ server { {% if location.proxy_http_version is defined and location.proxy_http_version %} proxy_http_version {{ location.proxy_http_version }}; {% endif %} + {% if location.proxy_buffering is defined and location.proxy_buffering %} + proxy_buffering {{ location.proxy_buffering }}; + {% endif %} + {% if location.proxy_connect_timeout is defined and location.proxy_connect_timeout %} + proxy_connect_timeout {{ location.proxy_connect_timeout }}; + {% endif %} + {% if location.proxy_read_timeout is defined and location.proxy_read_timeout %} + proxy_read_timeout {{ location.proxy_read_timeout }}; + {% endif %} + {% if location.proxy_send_timeout is defined and location.proxy_send_timeout %} + proxy_send_timeout {{ location.proxy_send_timeout }}; + {% endif %} {% if location.proxy_headers is defined and location.proxy_headers %} {% for pheader in location.proxy_headers %}