diff options
author | Kristian Lyngstol <kly@kly.no> | 2016-11-07 20:15:26 +0100 |
---|---|---|
committer | Kristian Lyngstol <kly@kly.no> | 2016-11-07 20:15:26 +0100 |
commit | 1645bca3aed66c2121fe6d8aaeea8405906723e2 (patch) | |
tree | b4c00cde77a2bbc8255d1b295b962b14926889ac /extras/misc/varnish.vcl | |
parent | fc1b028e555a3703fbc643965620dea919f3fe19 (diff) |
Scaffolding for functional templating :D
Diffstat (limited to 'extras/misc/varnish.vcl')
-rw-r--r-- | extras/misc/varnish.vcl | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/extras/misc/varnish.vcl b/extras/misc/varnish.vcl index b10a640..c9e23c5 100644 --- a/extras/misc/varnish.vcl +++ b/extras/misc/varnish.vcl @@ -12,6 +12,11 @@ backend graphite { .port = "80"; } +backend templating { + .host = "gondul-templating"; + .port = "8080"; +} + sub vcl_recv { if (req.url ~ "^/where" || req.url ~ "^/location") { set req.url = "/api/public/location"; @@ -35,6 +40,10 @@ sub vcl_recv { if (req.url ~ "/render") { set req.backend_hint = graphite; } + if (req.url ~ "/templating") { + set req.url = regsub(req.url, "/templating", ""); + set req.backend_hint = templating; + } # Brukes ikke. Cookies er for nubs. unset req.http.Cookie; |