We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2db3f84 commit 6ea9dc7Copy full SHA for 6ea9dc7
docs/varnish.rst
@@ -0,0 +1,28 @@
1
+If specified, the ``VARNISH_BASE`` configuration option is used is
2
+used to invalidate varnish's cache when necessary. This should be the
3
+URL of the varnish instance; see `config.yaml.example
4
+<config.yaml.example>`_.
5
+
6
+This depends on a varnish configuration that processes ``BAN``
7
+requests over HTTP:
8
9
+.. code:: vcl
10
11
+ acl purge {
12
+ "localhost";
13
+ }
14
15
+ sub vcl_recv {
16
+ if (req.method == "BAN") {
17
+ if (!client.ip ~ purge) {
18
+ return(synth(405, "Not allowed."));
19
20
21
+ ban("req.http.host == " + req.http.host +
22
+ " && req.url ~ " + req.url);
23
24
+ return(synth(200, "Ban added."));
25
26
27
28
+Enjoy.
varnish.md
0 commit comments