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
17d40124
Commit
17d40124
authored
9 years ago
by
Ad Schellevis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(captiveportal, new) work in progress Jinja2 zone template
parent
05c5b3da
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 @
17d40124
#rc.conf.d:/etc/rc.conf.d/captiveportal
#rc.conf.d:/etc/rc.conf.d/captiveportal
captiveportal.conf:/usr/local/etc/captiveportal.conf
captiveportal.conf:/usr/local/etc/captiveportal.conf
lighttpd-api-dispatcher.conf:/var/etc/lighttpd-api-dispatcher.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
This diff is collapsed.
Click to expand it.
src/opnsense/service/templates/OPNsense/Captiveportal/lighttpd-zone.conf
View file @
17d40124
{
# 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
### Captive portal lighttpd.conf BEGIN
#######################################################
#######################################################
...
@@ -11,9 +21,9 @@ server.modules = ( "mod_expire",
...
@@ -11,9 +21,9 @@ server.modules = ( "mod_expire",
"mod_compress"
,
"mod_compress"
,
"mod_status"
,
"mod_status"
,
"mod_rewrite"
,
"mod_rewrite"
,
"mod_proxy"
,
"mod_proxy"
,
"mod_setenv"
,
"mod_setenv"
,
"mod_extforward"
"mod_extforward"
)
)
#### performance options (aggressive timeouts)
#### performance options (aggressive timeouts)
...
...
This diff is collapsed.
Click to expand it.
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