diff options
author | Kristian Lyngstol <kristian@bohemians.org> | 2016-04-01 20:41:53 +0200 |
---|---|---|
committer | Kristian Lyngstol <kristian@bohemians.org> | 2016-04-01 20:41:53 +0200 |
commit | d1f06af5828a198bda396e04a712774b7a449d00 (patch) | |
tree | 029f3d12eb072a8737f7be11c04a4d73df57e990 /web | |
parent | a1cbb896dad0c9ee4841f6fd4835a05f3013fbc7 (diff) |
NMS: Add ansible playbook for front and fix VCL
Works OK, but some work is still needed, specially regarding configuration
and passwords and whatnot.
Diffstat (limited to 'web')
-rw-r--r-- | web/etc/varnish/nms.vcl | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/web/etc/varnish/nms.vcl b/web/etc/varnish/nms.vcl index 8ac8b46..754ecbc 100644 --- a/web/etc/varnish/nms.vcl +++ b/web/etc/varnish/nms.vcl @@ -1,24 +1,13 @@ # vim: ts=8:expandtab:sw=4:softtabstop=4 -# Magi. vcl 4.0; -# Mer magi. 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"; } |