This is now available, sample implementation for a plugin https://github.com/NodeBB/nodebb-plugin-friends/commit/6e6f2f45b1ebf42cb1d688070c777a02eda1fd4a.
Thanks @Antosik
# NodeBB
if (req.http.host == "forum.yourwebsite.com") { # change this to match your host
if (req.url ~ "^/socket.io/") {
set req.backend = nodebb;
return (pipe); # return pass seems not working for websockets
}
return (pass); # don't cache
}
Configuration that you have suggested, is not a good configuration because everything will be pass.
Who knows a better configuration?
@sanatisharif where is this from?
@PitaJ said in varnish config:
@sanatisharif where is this from?
@julian said in varnish config:
Might be from our docs... @trevor wrote one up awhile back, so it probably needs some tweaking.
https://docs.nodebb.org/en/latest/configuring/proxies/varnish.html