Files
Keenetic-Split-DNS/etc/lighttpd/lighttpd.conf
Андрей Бобырев 66354221a4 fix: audit corrections
Fix YAML section parsing and upstream ID extraction in compile-config,
detect-lan shell syntax, lighttpd CGI modules, API reload path, install
idempotency, and dashboard log display.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-24 23:04:44 +03:00

35 lines
824 B
Plaintext

# Keenetic-Split-DNS web UI — lighttpd
# Installed to /opt/etc/keenetic-split-dns/lighttpd.conf
server.modules += (
"mod_cgi",
"mod_rewrite"
)
server.document-root = "/opt/share/keenetic-split-dns/www"
server.port = 3200
server.bind = "LAN_IP_PLACEHOLDER"
server.errorlog = "/opt/var/log/keenetic-split-dns/lighttpd-error.log"
server.pid-file = "/opt/var/run/keenetic-split-dns/lighttpd.pid"
index-file.names = ( "index.html" )
mimetype.assign = (
".html" => "text/html",
".css" => "text/css",
".js" => "application/javascript",
".json" => "application/json",
".svg" => "image/svg+xml",
".ico" => "image/x-icon"
)
cgi.assign = (
".cgi" => ""
)
url.rewrite-once = (
"^/api/?$" => "/api.cgi/status",
"^/api/(.*)$" => "/api.cgi/$1"
)
# LAN only — bind set at install/apply from config.yaml