Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
OpnSense
Commits
ce402032
Commit
ce402032
authored
Sep 30, 2015
by
Ad Schellevis
Committed by
Franco Fichtner
Oct 01, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(captiveportal, new) work in progress Jinja2 zone template
(cherry picked from commit
17d40124
)
parent
1566ce86
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
3 deletions
+14
-3
+TARGETS
...pnsense/service/templates/OPNsense/Captiveportal/+TARGETS
+1
-0
lighttpd-zone.conf
...rvice/templates/OPNsense/Captiveportal/lighttpd-zone.conf
+13
-3
No files found.
src/opnsense/service/templates/OPNsense/Captiveportal/+TARGETS
View file @
ce402032
#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
src/opnsense/service/templates/OPNsense/Captiveportal/lighttpd-zone.conf
View file @
ce402032
{
# 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)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment