Skip to content
Snippets Groups Projects
Commit 44131dc5 authored by jurgenhaas's avatar jurgenhaas
Browse files

Allow access to Varnish control panel from Drupal sites

parent ad0ebaf7
No related branches found
No related tags found
No related merge requests found
......@@ -99,7 +99,11 @@ backend backend_{{host}}
{% if varnish_host|default(false) %}
backend backend_varnish
server varnish {{ varnish_host }}:6081 maxconn 32
{% if varnish_host == inventory_host %}
server varnish 127.0.0.1:6081 maxconn 32
{% else %}
server varnish {{ hostvars[varnish_host]['static_ipv4']|default(hostvars[varnish_host]['ansible_default_ipv4']['address']) }}:6081 maxconn 32
{% endif %}
{% endif %}
backend backend_redirect_ssl
......
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