Remove redundant and fix forwarded IP in varnish config

Skip unnecessary methods in haproxy instead of giving extra work to varnish (kept the check in vcl)
This commit is contained in:
Thomas Lynch
2024-11-29 15:19:11 +11:00
parent 2261c2432f
commit bbec69b89b
2 changed files with 11 additions and 11 deletions

View File

@ -150,7 +150,8 @@ frontend http-in
# varnish caching if available
acl varnish_available nbsrv(haproxy-to-varnish-cache) gt 0
use_backend haproxy-to-varnish-cache if varnish_available
acl is_varnish_methods method GET HEAD PURGE BAN
use_backend haproxy-to-varnish-cache if varnish_available is_varnish_methods
default_backend servers
frontend varnish-to-haproxy-internal