Commit f1bf9213 authored by Łukasz Nowak's avatar Łukasz Nowak

caddy-frontend: Set proxy timeout

parent 3749d64e
......@@ -55,7 +55,7 @@ md5sum = 4dbb8560e4de1af2a0706b020e713fe7
[template-default-slave-virtualhost]
filename = templates/default-virtualhost.conf.in
md5sum = ae1f697a837ea31524278b35af74a823
md5sum = 1f70a3005915e84091bfd6cb7c77b05c
[template-cached-slave-virtualhost]
filename = templates/cached-virtualhost.conf.in
......
......@@ -45,9 +45,6 @@
# TODO-Caddy Protocols h2 http/1.1
{% endif -%}
# TODO-Caddy # Rewrite part
# TODO-Caddy ProxyTimeout 600
{% if disable_via_header %}
# TODO-Caddy Header unset Via
{% endif -%}
......@@ -68,6 +65,7 @@
{% if slave_type == 'zope' -%}
proxy / {{ slave_parameter.get('https-url', slave_parameter.get('url', '')) }} {
transparent
timeout 600s
}
{% if 'default-path' in slave_parameter %}
redir 301 {
......@@ -92,6 +90,7 @@
{% endif -%}
proxy / {{ slave_parameter.get('https-url', slave_parameter.get('url', '')) }} {
transparent
timeout 600s
{%- if not ssl_proxy_verify %}
insecure_skip_verify
{%- endif %}
......@@ -114,8 +113,6 @@
# TODO-Caddy #SSLProxyCheckPeerCN on
# TODO-Caddy SSLProxyCheckPeerExpire on
{% endif %}
# TODO-Caddy # Rewrite part
# TODO-Caddy ProxyTimeout 600
{% if disable_via_header %}
# TODO-Caddy Header unset Via
......@@ -153,6 +150,7 @@
{% elif slave_type == 'zope' -%}
proxy / {{ slave_parameter.get('https-url', slave_parameter.get('url', '')) }} {
transparent
timeout 600s
}
{% if 'default-path' in slave_parameter %}
redir 301 {
......@@ -173,6 +171,7 @@
{% endif -%}
proxy / {{ slave_parameter.get('url', '') }} {
transparent
timeout 600s
{%- if not ssl_proxy_verify %}
insecure_skip_verify
{%- endif %}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment