diff options
author | Christian Breunig <christian@breunig.cc> | 2025-02-11 19:34:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-11 19:34:12 +0100 |
commit | fba59f9e19679764e41cde045fb572291e9fb25f (patch) | |
tree | 65ce8223a374fe80b18d5df044bf497871b8abd2 /data/templates | |
parent | 9c9bb35f414242ddd729de063de468a543b2d7c8 (diff) | |
parent | 43ecb3c9ac1e7d7a22a91ab4fe6d419f75d6ba96 (diff) | |
download | vyos-1x-fba59f9e19679764e41cde045fb572291e9fb25f.tar.gz vyos-1x-fba59f9e19679764e41cde045fb572291e9fb25f.zip |
Merge pull request #4344 from aapostoliuk/T7057-circinus
webproxy: T7057: Fixed 'domain-nocache' command
Diffstat (limited to 'data/templates')
-rw-r--r-- | data/templates/squid/squid.conf.j2 | 8 |
1 files changed, 8 insertions, 0 deletions
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 }} |