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

caddy-frontend: Set proxy timeout

parent 3749d64e
...@@ -55,7 +55,7 @@ md5sum = 4dbb8560e4de1af2a0706b020e713fe7 ...@@ -55,7 +55,7 @@ md5sum = 4dbb8560e4de1af2a0706b020e713fe7
[template-default-slave-virtualhost] [template-default-slave-virtualhost]
filename = templates/default-virtualhost.conf.in filename = templates/default-virtualhost.conf.in
md5sum = ae1f697a837ea31524278b35af74a823 md5sum = 1f70a3005915e84091bfd6cb7c77b05c
[template-cached-slave-virtualhost] [template-cached-slave-virtualhost]
filename = templates/cached-virtualhost.conf.in filename = templates/cached-virtualhost.conf.in
......
...@@ -45,9 +45,6 @@ ...@@ -45,9 +45,6 @@
# TODO-Caddy Protocols h2 http/1.1 # TODO-Caddy Protocols h2 http/1.1
{% endif -%} {% endif -%}
# TODO-Caddy # Rewrite part
# TODO-Caddy ProxyTimeout 600
{% if disable_via_header %} {% if disable_via_header %}
# TODO-Caddy Header unset Via # TODO-Caddy Header unset Via
{% endif -%} {% endif -%}
...@@ -68,6 +65,7 @@ ...@@ -68,6 +65,7 @@
{% if slave_type == 'zope' -%} {% if slave_type == 'zope' -%}
proxy / {{ slave_parameter.get('https-url', slave_parameter.get('url', '')) }} { proxy / {{ slave_parameter.get('https-url', slave_parameter.get('url', '')) }} {
transparent transparent
timeout 600s
} }
{% if 'default-path' in slave_parameter %} {% if 'default-path' in slave_parameter %}
redir 301 { redir 301 {
...@@ -92,6 +90,7 @@ ...@@ -92,6 +90,7 @@
{% endif -%} {% endif -%}
proxy / {{ slave_parameter.get('https-url', slave_parameter.get('url', '')) }} { proxy / {{ slave_parameter.get('https-url', slave_parameter.get('url', '')) }} {
transparent transparent
timeout 600s
{%- if not ssl_proxy_verify %} {%- if not ssl_proxy_verify %}
insecure_skip_verify insecure_skip_verify
{%- endif %} {%- endif %}
...@@ -114,8 +113,6 @@ ...@@ -114,8 +113,6 @@
# TODO-Caddy #SSLProxyCheckPeerCN on # TODO-Caddy #SSLProxyCheckPeerCN on
# TODO-Caddy SSLProxyCheckPeerExpire on # TODO-Caddy SSLProxyCheckPeerExpire on
{% endif %} {% endif %}
# TODO-Caddy # Rewrite part
# TODO-Caddy ProxyTimeout 600
{% if disable_via_header %} {% if disable_via_header %}
# TODO-Caddy Header unset Via # TODO-Caddy Header unset Via
...@@ -153,6 +150,7 @@ ...@@ -153,6 +150,7 @@
{% elif slave_type == 'zope' -%} {% elif slave_type == 'zope' -%}
proxy / {{ slave_parameter.get('https-url', slave_parameter.get('url', '')) }} { proxy / {{ slave_parameter.get('https-url', slave_parameter.get('url', '')) }} {
transparent transparent
timeout 600s
} }
{% if 'default-path' in slave_parameter %} {% if 'default-path' in slave_parameter %}
redir 301 { redir 301 {
...@@ -173,6 +171,7 @@ ...@@ -173,6 +171,7 @@
{% endif -%} {% endif -%}
proxy / {{ slave_parameter.get('url', '') }} { proxy / {{ slave_parameter.get('url', '') }} {
transparent transparent
timeout 600s
{%- if not ssl_proxy_verify %} {%- if not ssl_proxy_verify %}
insecure_skip_verify insecure_skip_verify
{%- endif %} {%- 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