Created
July 2, 2015 13:12
-
-
Save jeromenerf/4a855cdf4925a546fb9f to your computer and use it in GitHub Desktop.
This file contains 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.0; | |
import std; | |
backend default { | |
.host = "127.0.0.1"; | |
.port = "1313"; | |
} | |
backend front_api { | |
.host = "127.0.0.1"; | |
.port = "1313"; | |
} | |
sub vcl_recv { | |
if ( req.method != "GET") { return (pass); } | |
set req.backend_hint = front_api; | |
} | |
sub vcl_backend_response { | |
set beresp.ttl = 10s; | |
set beresp.grace = 20s; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment