Skip to content

Commit

Permalink
fix(ng/default.vcl): add new template for ng
Browse files Browse the repository at this point in the history
  • Loading branch information
myii committed Nov 25, 2019
1 parent 63881e8 commit a3ed404
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions varnish/ng/files/default.vcl.jinja
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Managed by saltstack.
{% set settings = salt['pillar.get']('varnish:ng', {}) -%}

{% set vcl_version = settings.get('vcl', {}).get('version', '4.0') -%}
vcl {{ vcl_version }};

# This is a ultra-minimal valid VCL for Varnish that uses the default conf
# already present in the code. That means an conservative approach regarding
# cache policies (e.g. no caching of any cookie related object).

backend default {
.host = "{{ settings.get('vcl', {}).get('backend_default_host',
'127.0.0.1') }}";
.port = "{{ settings.get('vcl', {}).get('backend_default_port',
'8080') }}";
}

0 comments on commit a3ed404

Please sign in to comment.