Skip to content
Snippets Groups Projects
Verified Commit f290575b authored by Glenn Strauss's avatar Glenn Strauss Committed by Aleksandr Gumroian
Browse files

prepare to support upstream openwrt lighttpd pkg

put Turris webapp settings in turris-root.conf

x-ref:
  turris/os/packages#474
parent 5676f1b2
Branches
Tags v4.1.0
No related merge requests found
# These settings augment OpenWrt (upstream) lighttpd default config
# to support Turris webapps.
# This is part of turris-webapps package and is not meant to be edited.
# If you need different setup, uninstall this package and create your own config
# Listen on IPv4 "*:80" (default) and on IPv6 "[::]:80"
$SERVER["socket"] == "*:80" { }
$SERVER["socket"] == "[::]:80" { }
# Reset values so that lighttpd does not drop privileges
# and instead runs as the user who started lighttpd (root).
# LuCI, Foris, reForis require root to manage router configuration.
server.username := ""
server.groupname := ""
# JSON API
$HTTP["url"] =~ "^/js/apps.json$" {
alias.url = ( "/js/apps.json" => "/usr/share/turris-webapps/turris-webapps-json-cgi" )
......
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