mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2024-12-25 02:18:31 +01:00
Added variable matrix_nginx_proxy_request_timeout (#1265)
* add timeout param for nginx proxy default value matrix_nginx_proxy_request_timeout is 60s * default matrix_nginx_proxy_request_timeout - 60s * few more variables for request timeout * Update nginx.conf.j2 * Update nginx.conf.j2
This commit is contained in:
parent
a911207854
commit
ae6caf158a
@ -282,6 +282,23 @@ matrix_nginx_proxy_proxy_sygnal_additional_server_configuration_blocks: []
|
|||||||
# A list of strings containing additional configuration blocks to add to the base domain server configuration (matrix-base-domain.conf).
|
# A list of strings containing additional configuration blocks to add to the base domain server configuration (matrix-base-domain.conf).
|
||||||
matrix_nginx_proxy_proxy_domain_additional_server_configuration_blocks: []
|
matrix_nginx_proxy_proxy_domain_additional_server_configuration_blocks: []
|
||||||
|
|
||||||
|
# To increase request timeout in NGINX using proxy_read_timeout, proxy_connect_timeout, proxy_send_timeout, send_timeout directives
|
||||||
|
# Nginx Default: proxy_connect_timeout 60s; #Defines a timeout for establishing a connection with a proxied server
|
||||||
|
# Nginx Default: proxy_send_timeout 60s; #Sets a timeout for transmitting a request to the proxied server.
|
||||||
|
# Nginx Default: proxy_read_timeout 60s; #Defines a timeout for reading a response from the proxied server.
|
||||||
|
# Nginx Default: send_timeout 60s; #Sets a timeout for transmitting a response to the client.
|
||||||
|
#
|
||||||
|
# For more information visit:
|
||||||
|
# http://nginx.org/en/docs/http/ngx_http_proxy_module.html
|
||||||
|
# http://nginx.org/en/docs/http/ngx_http_core_module.html#send_timeout
|
||||||
|
# https://www.nginx.com/resources/wiki/start/topics/examples/fullexample2/
|
||||||
|
#
|
||||||
|
# Here we are sticking with nginx default values change this value carefully.
|
||||||
|
matrix_nginx_proxy_connect_timeout: 60
|
||||||
|
matrix_nginx_proxy_send_timeout: 60
|
||||||
|
matrix_nginx_proxy_read_timeout: 60
|
||||||
|
matrix_nginx_send_timeout: 60
|
||||||
|
|
||||||
# Controls whether to send a "Permissions-Policy interest-cohort=();" header along with all responses for all vhosts meant to be accessed by users.
|
# Controls whether to send a "Permissions-Policy interest-cohort=();" header along with all responses for all vhosts meant to be accessed by users.
|
||||||
#
|
#
|
||||||
# Learn more about what it is here:
|
# Learn more about what it is here:
|
||||||
|
@ -43,6 +43,11 @@ http {
|
|||||||
access_log off;
|
access_log off;
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
proxy_connect_timeout {{ matrix_nginx_proxy_connect_timeout }};
|
||||||
|
proxy_send_timeout {{ matrix_nginx_proxy_send_timeout }};
|
||||||
|
proxy_read_timeout {{ matrix_nginx_proxy_read_timeout }};
|
||||||
|
send_timeout {{ matrix_nginx_send_timeout }};
|
||||||
|
|
||||||
sendfile on;
|
sendfile on;
|
||||||
#tcp_nopush on;
|
#tcp_nopush on;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user