-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlighttpd-docker.conf
More file actions
35 lines (30 loc) · 861 Bytes
/
lighttpd-docker.conf
File metadata and controls
35 lines (30 loc) · 861 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# lighttpd configuration for WLED Frontend (Docker)
# Server settings
server.document-root = "/app/frontend/build"
server.port = 3011
server.bind = "0.0.0.0"
# Modules to load
server.modules = (
"mod_rewrite",
"mod_staticfile"
)
# MIME type mapping for static files
mimetype.assign = (
".html" => "text/html",
".css" => "text/css",
".js" => "application/javascript",
".json" => "application/json",
".png" => "image/png",
".jpg" => "image/jpeg",
".svg" => "image/svg+xml",
".woff" => "font/woff",
".woff2" => "font/woff2"
)
# Logging - use stdout/stderr for Docker
server.errorlog-use-syslog = "enable"
# SPA Fallback for SvelteKit routing
# If a requested file is not found, serve /index.html instead.
# This allows the frontend router to handle the path.
url.rewrite-if-not-file = (
"^/.*" => "/index.html"
)