Skip to content

Example of Varnish configuration for handling WebSockets

Notifications You must be signed in to change notification settings

yottta/varnish-websocket

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

varnish-websocket

This repo is intended to give a startup point for a Varnish configuration to enable WebSocket communication.

How to run this?

Clone the repo and run the following command:

docker-compose up --build

Access http://localhost and you should see a list of two products. Add a new product using curl:

curl -XPOST http://127.0.0.1/product -d 'product3'

Invalidate cache:

curl -XPURGE http://127.0.0.1/product -v

About

Example of Varnish configuration for handling WebSockets

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published