Last active
March 27, 2019 09:16
-
-
Save yottta/0644c3e79416a22703bcab59937401e5 to your computer and use it in GitHub Desktop.
Medium article about WebSockets throughout Varnish - user.vcl 1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vcl 4.1; | |
backend default { | |
.host = "web-client"; | |
.port = "80"; | |
} | |
backend productService { | |
.host = "product-service"; | |
.port = "8080"; | |
} | |
sub vcl_recv { | |
if (req.url == "/product" || req.url == "/ws") { | |
set req.backend_hint = productService; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment