Skip to content
Snippets Groups Projects
Commit 28b437c8 authored by jurgenhaas's avatar jurgenhaas
Browse files

ansible-inventories/alphabet#2885 Only send public asset requests to Varnish,...

ansible-inventories/alphabet#2885 Only send public asset requests to Varnish, even if bigpipe support is enabled
parent f6914e12
No related branches found
No related tags found
No related merge requests found
......@@ -165,9 +165,9 @@ frontend http_in
acl is_ban method BAN
use_backend backend_varnish if is_ban
acl domain_ignores_varnish hdr(host) -i -n -f /etc/haproxy/ignore_varnish.list
use_backend backend_varnish_bigpipe if domain_uses_bigpipe !domain_ignores_varnish
acl static_content path_end .jpg .jpeg .gif .png .ico .swf .css .js .htm .html .ttf .woff .woff2 .svg .eot
acl static_content_private path_beg /system/
use_backend backend_varnish_bigpipe if static_content !static_content_private domain_uses_bigpipe !domain_ignores_varnish
use_backend backend_varnish if static_content !static_content_private !domain_ignores_varnish
{% endif %}
{% if 'webserver' in groups %}
......@@ -298,9 +298,9 @@ frontend https_in_{{ cert.ip }}
acl domain_uses_bigpipe hdr(host) -i -n -f /etc/haproxy/use_bigpipe.list
{% if varnish_host|default(false) %}
acl domain_ignores_varnish hdr(host) -i -n -f /etc/haproxy/ignore_varnish.list
use_backend backend_varnish_bigpipe if domain_uses_bigpipe !domain_ignores_varnish
acl static_content path_end .jpg .jpeg .gif .png .ico .swf .css .js .htm .html .ttf .woff .woff2 .svg .eot
acl static_content_private path_beg /system/
use_backend backend_varnish_bigpipe if static_content !static_content_private domain_uses_bigpipe !domain_ignores_varnish
use_backend backend_varnish if static_content !static_content_private !domain_ignores_varnish
{% endif %}
{% if 'webserver' in groups %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment