diff options
author | aapostoliuk <a.apostoliuk@vyos.io> | 2025-02-11 11:17:52 +0200 |
---|---|---|
committer | aapostoliuk <a.apostoliuk@vyos.io> | 2025-02-11 17:51:42 +0200 |
commit | 43ecb3c9ac1e7d7a22a91ab4fe6d419f75d6ba96 (patch) | |
tree | 65ce8223a374fe80b18d5df044bf497871b8abd2 /data/templates | |
parent | 9c9bb35f414242ddd729de063de468a543b2d7c8 (diff) | |
download | vyos-1x-43ecb3c9ac1e7d7a22a91ab4fe6d419f75d6ba96.tar.gz vyos-1x-43ecb3c9ac1e7d7a22a91ab4fe6d419f75d6ba96.zip |
webproxy: T7057: Fixed 'domain-nocache' command
Fixed 'domain-nocache' command.
Added config generation for this 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 }} |