ported varnish docs

This commit is contained in:
psychobunny
2014-04-25 18:07:18 -04:00
parent 7ac3f82c5e
commit ee63ecbe3e

View File

@@ -1,6 +1,10 @@
To be sure Varnish will work properly with NodeBB check that your configuration ```/etc/varnish/default.vcl``` is optimized for **websockets**.
Configuring Varnish Cache
==========================
To be sure Varnish will work properly with NodeBB check that your configuration ``/etc/varnish/default.vcl`` is optimized for **websockets**.
.. code::
```varnish
backend nodebb {
.host = "127.0.0.1"; # your nodebb host
.port = "4567"; # your nodebb port
@@ -31,4 +35,3 @@ sub vcl_pipe {
set bereq.http.upgrade = req.http.upgrade;
}
}
```