Commit ce402032 authored by Ad Schellevis's avatar Ad Schellevis Committed by Franco Fichtner

(captiveportal, new) work in progress Jinja2 zone template

(cherry picked from commit 17d40124)
parent 1566ce86
#rc.conf.d:/etc/rc.conf.d/captiveportal
captiveportal.conf:/usr/local/etc/captiveportal.conf
lighttpd-api-dispatcher.conf:/var/etc/lighttpd-api-dispatcher.conf
lighttpd-zone.conf:/var/etc/lighttpd-cp-zone-[OPNsense.captiveportal.zones.zone.%.zoneid].conf
{# select Captiveportal zone item #}
{% set cp_zone_item = [] %}
{% for item in OPNsense.captiveportal.zones.zone %}
{% if TARGET_FILTERS['OPNsense.captiveportal.zones.zone.' ~ loop.index0] or TARGET_FILTERS['OPNsense.captiveportal.zones.zone'] %}
{% do cp_zone_item.append(item) %}
{% endif %}
{% endfor %}
{% set cp_zone_item = cp_zone_item[0]|default(None) %}
#######################################################
### Captive portal lighttpd.conf BEGIN
#######################################################
......@@ -11,9 +21,9 @@ server.modules = ( "mod_expire",
"mod_compress",
"mod_status",
"mod_rewrite",
"mod_proxy",
"mod_setenv",
"mod_extforward"
"mod_proxy",
"mod_setenv",
"mod_extforward"
)
#### performance options (aggressive timeouts)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment