summaryrefslogtreecommitdiff
path: root/data/templates/squid/sg_acl.conf.j2
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-05-01 19:13:45 +0200
committerChristian Poessinger <christian@poessinger.com>2022-05-01 19:13:45 +0200
commiteafe13ace604a3381a41d07c1d49c495680bf3d7 (patch)
treeffbbdcca419a070f9bbd04a95a32cc4080e9d64a /data/templates/squid/sg_acl.conf.j2
parente0f1e495b81c8b214a8e12678bf5c643b36567dd (diff)
downloadvyos-1x-eafe13ace604a3381a41d07c1d49c495680bf3d7.tar.gz
vyos-1x-eafe13ace604a3381a41d07c1d49c495680bf3d7.zip
webproxy: T4353: fix Jinja2 linting errors
Diffstat (limited to 'data/templates/squid/sg_acl.conf.j2')
-rw-r--r--data/templates/squid/sg_acl.conf.j218
1 files changed, 18 insertions, 0 deletions
diff --git a/data/templates/squid/sg_acl.conf.j2 b/data/templates/squid/sg_acl.conf.j2
new file mode 100644
index 000000000..ce72b173a
--- /dev/null
+++ b/data/templates/squid/sg_acl.conf.j2
@@ -0,0 +1,18 @@
+### generated by service_webproxy.py ###
+dbhome {{ squidguard_db_dir }}
+
+dest {{ category }}-{{ rule }} {
+{% if list_type == 'domains' %}
+ domainlist {{ category }}/domains
+{% elif list_type == 'urls' %}
+ urllist {{ category }}/urls
+{% elif list_type == 'expressions' %}
+ expressionlist {{ category }}/expressions
+{% endif %}
+}
+
+acl {
+ default {
+ pass all
+ }
+}