From 43ecb3c9ac1e7d7a22a91ab4fe6d419f75d6ba96 Mon Sep 17 00:00:00 2001 From: aapostoliuk Date: Tue, 11 Feb 2025 11:17:52 +0200 Subject: webproxy: T7057: Fixed 'domain-nocache' command Fixed 'domain-nocache' command. Added config generation for this command. --- data/templates/squid/squid.conf.j2 | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'data') diff --git a/data/templates/squid/squid.conf.j2 b/data/templates/squid/squid.conf.j2 index b953c8b18..4e3d702a8 100644 --- a/data/templates/squid/squid.conf.j2 +++ b/data/templates/squid/squid.conf.j2 @@ -30,6 +30,14 @@ acl BLOCKDOMAIN dstdomain {{ domain }} {% endfor %} http_access deny BLOCKDOMAIN {% endif %} + +{% if domain_noncache is vyos_defined %} +{% for domain in domain_noncache %} +acl NOCACHE dstdomain {{ domain }} +{% endfor %} +no_cache deny NOCACHE +{% endif %} + {% if authentication is vyos_defined %} {% if authentication.children is vyos_defined %} auth_param basic children {{ authentication.children }} -- cgit v1.2.3