diff options
author | Kristian Lyngstol <kristian@bohemians.org> | 2016-04-01 19:14:20 +0200 |
---|---|---|
committer | Kristian Lyngstol <kristian@bohemians.org> | 2016-04-01 19:14:20 +0200 |
commit | bc83b07e4aa4c68f63f4e1b9f6f00757388ea13c (patch) | |
tree | ccb9a45430645ea80bca1b3717e453e254229a0e /web/etc/varnish/nms.vcl | |
parent | 1d2470a411e5eaac7e5a1c5d5b6b81e92c92f4a8 (diff) | |
parent | 3dc8afb739a03459393d3cda79bd16cefff15cae (diff) |
Merge branch 'master' of github.com:tech-server/tgmanage
Diffstat (limited to 'web/etc/varnish/nms.vcl')
-rw-r--r-- | web/etc/varnish/nms.vcl | 10 |
1 files changed, 9 insertions, 1 deletions
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"; } |