mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
www/nginx: add proxy timeout support
This commit is contained in:
committed by
Franco Fichtner
parent
ca09b68993
commit
9a6558bca4
@@ -235,6 +235,20 @@
|
||||
<advanced>true</advanced>
|
||||
<help>If you enable the WebSocket Support option, nginx will pass the upgrade header to the backed server.</help>
|
||||
</field>
|
||||
<field>
|
||||
<id>location.proxy_read_timeout</id>
|
||||
<label>Proxy Read Timeout</label>
|
||||
<type>text</type>
|
||||
<advanced>true</advanced>
|
||||
<help>Enter a custom timout between data received from the client after which the connection is closed.</help>
|
||||
</field>
|
||||
<field>
|
||||
<id>location.proxy_send_timeout</id>
|
||||
<label>Proxy Send Timeout</label>
|
||||
<type>text</type>
|
||||
<advanced>true</advanced>
|
||||
<help>Enter a custom timout between data it sent to the client after which the connection is closed. </help>
|
||||
</field>
|
||||
<field>
|
||||
<id>location.proxy_buffering</id>
|
||||
<label>Response Buffering</label>
|
||||
|
||||
@@ -364,6 +364,14 @@
|
||||
<Required>Y</Required>
|
||||
<default>1</default>
|
||||
</proxy_buffering>
|
||||
<proxy_read_timeout type="IntegerField">
|
||||
<Required>N</Required>
|
||||
<minValue>1</minValue>
|
||||
</proxy_read_timeout>
|
||||
<proxy_send_timeout type="IntegerField">
|
||||
<Required>N</Required>
|
||||
<minValue>1</minValue>
|
||||
</proxy_send_timeout>
|
||||
<http2_push_preload type="BooleanField">
|
||||
<Required>Y</Required>
|
||||
<default>0</default>
|
||||
|
||||
@@ -139,6 +139,12 @@ location {{ location.matchtype }} {{ location.urlpattern }} {
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_set_header X-TLS-Client-Intercepted $tls_intercepted;
|
||||
{% if location.proxy_read_timeout is defined and location.proxy_read_timeout != '' %}
|
||||
proxy_read_timeout {{ location.proxy_read_timeout }}s;
|
||||
{% endif %}
|
||||
{% if location.proxy_send_timeout is defined and location.proxy_send_timeout != '' %}
|
||||
proxy_send_timeout {{ location.proxy_send_timeout }}s;
|
||||
{% endif %}
|
||||
proxy_ignore_client_abort {% if location.proxy_ignore_client_abort == '1' %}on{% else %}off{% endif %};
|
||||
proxy_request_buffering {% if location.proxy_request_buffering == '1' %}on{% else %}off{% endif %};
|
||||
proxy_buffering {% if location.proxy_buffering == '1' %}on{% else %}off{% endif %};
|
||||
|
||||
Reference in New Issue
Block a user