From 4b69030c295365df8ffd448288bfdb1ece991227 Mon Sep 17 00:00:00 2001 From: Kristian Lyngstol Date: Sat, 26 Mar 2016 20:21:03 +0100 Subject: NMS: Tweak caching and more --- web/etc/varnish/nms.vcl | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'web/etc/varnish') diff --git a/web/etc/varnish/nms.vcl b/web/etc/varnish/nms.vcl index 53a9444..8ac8b46 100644 --- a/web/etc/varnish/nms.vcl +++ b/web/etc/varnish/nms.vcl @@ -8,9 +8,17 @@ backend default { .host = "127.0.0.1"; .port = "8080"; } - +acl yoda { + "185.110.148.11"; + "127.0.0.1"; + "::1"; + "2a06:5841:1337::11"; +} # Sort magi. sub vcl_recv { + if (client.ip !~ yoda) { + return (synth(418,"GET RECKT")); + } if (req.url ~ "^/where" || req.url ~ "^/location") { set req.url = "/api/public/location"; } -- cgit v1.2.3