# Dev: auth via Authelia (if running) or dev headers (if not) # To use Authelia: docker run -d --name authelia -p 9091:9091 -v $(pwd)/etc/authelia.yml:/etc/authelia/authelia.yml -v $(pwd)/etc/authelia-users.yml:/etc/authelia/users.yml authelia/authelia:latest server.document-root = "/var/www/signet" server.port = 8080 server.username = "lighttpd" server.groupname = "lighttpd" server.errorlog = "/dev/stderr" server.max-request-size = 34000 # Dense form encodings amplify per-field allocations before handlers run. # Large logical JSON/PNG fields and PDF chunks use multipart, not URL encoding. $HTTP["url"] =~ "^/(api|pim-api)" { server.max-request-size = 16 $REQUEST_HEADER["Content-Type"] =~ "(?i)^multipart/form-data[ \\t]*;" { server.max-request-size = 1100 } } index-file.names = ( "index.html" ) mimetype.assign = ( ".html" => "text/html", ".js" => "text/javascript", ".css" => "text/css", ".png" => "image/png", ".jpg" => "image/jpeg", ".ttf" => "font/ttf", ".pdf" => "application/pdf" ) server.modules = ( "mod_alias", "mod_fastcgi", "mod_webdav" ) alias.url = ( "/dam/" => "/var/www/dam/", "/pim/" => "/var/www/pim/" ) # Route Signet & PIM APIs to FastCGI fastcgi.server = ( "/api" => (( "socket" => "/run/signet/api.sock", "check-local" => "disable" )), "/pim-api" => (( "socket" => "/run/signet/pim.sock", "check-local" => "disable" )), ) # Isolated dev only: tests/browser supply explicit identity headers. # Production must overwrite them at the trusted proxy and prevent backend bypass. $HTTP["url"] =~ "^/dam/" { webdav.activate = "enable" }