-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ng/default.vcl): add new template for
ng
- Loading branch information
Showing
1 changed file
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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') }}"; | ||
} |