summaryrefslogtreecommitdiffstats
path: root/manager/knot_resolver_manager/datamodel/templates/network.lua.j2
diff options
context:
space:
mode:
authorAleš Mrázek <ales.mrazek@nic.cz>2022-04-22 10:29:47 +0200
committerAleš Mrázek <ales.mrazek@nic.cz>2022-04-22 10:29:47 +0200
commitaa40df499501c106953bd3afecdad862c0d82b75 (patch)
treecbc75ab9be0e46293ba9584e4848585b1cbfed88 /manager/knot_resolver_manager/datamodel/templates/network.lua.j2
parentMerge branch 'manager-test-improvements' into 'manager' (diff)
downloadknot-resolver-aa40df499501c106953bd3afecdad862c0d82b75.tar.xz
knot-resolver-aa40df499501c106953bd3afecdad862c0d82b75.zip
manager: datamodel: PROXYv2 schema created
Diffstat (limited to 'manager/knot_resolver_manager/datamodel/templates/network.lua.j2')
-rw-r--r--manager/knot_resolver_manager/datamodel/templates/network.lua.j211
1 files changed, 11 insertions, 0 deletions
diff --git a/manager/knot_resolver_manager/datamodel/templates/network.lua.j2 b/manager/knot_resolver_manager/datamodel/templates/network.lua.j2
index 1ab6b281..22977753 100644
--- a/manager/knot_resolver_manager/datamodel/templates/network.lua.j2
+++ b/manager/knot_resolver_manager/datamodel/templates/network.lua.j2
@@ -84,6 +84,17 @@ modules.load('http')
{{ http_config(cfg.network.tls,"doh_legacy") }}
{% endif %}
+{% if cfg.network.proxy_v2 %}
+-- network.proxy-v2
+net.proxy_allowed({
+{% for item in cfg.network.proxy_v2.allow %}
+'{{ item }}',
+{% endfor %}
+})
+{% else %}
+net.proxy_allowed({})
+{% endif %}
+
-- network.listen
{% for listen in cfg.network.listen %}
{{ network_listen(listen) }}