mirror of
https://github.com/andrey271192/Keenetic-Split-DNS.git
synced 2026-09-20 11:55:36 +00:00
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>
35 lines
824 B
Plaintext
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
|