diff options
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; |