|
|
@ -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 {
|
|
|
|
backend nodebb {
|
|
|
|
.host = "127.0.0.1"; # your nodebb host
|
|
|
|
.host = "127.0.0.1"; # your nodebb host
|
|
|
|
.port = "4567"; # your nodebb port
|
|
|
|
.port = "4567"; # your nodebb port
|
|
|
@ -31,4 +35,3 @@ sub vcl_pipe {
|
|
|
|
set bereq.http.upgrade = req.http.upgrade;
|
|
|
|
set bereq.http.upgrade = req.http.upgrade;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|