feat(logs): get lighthttpd accesslog in docker logs

pull/887/head
Bastien Wirtz 2025-02-28 19:21:32 +01:00
parent 31f7cfa09f
commit 13fb05696a
2 changed files with 4 additions and 1 deletions

View File

@ -14,4 +14,5 @@ if [[ "${INIT_ASSETS}" == "1" ]] && [[ ! -f "/www/assets/config.yml" ]]; then
fi
echo "Starting webserver"
exec 3>&1
exec lighttpd -D -f /lighttpd.conf

View File

@ -2,7 +2,7 @@ include "/etc/lighttpd/mime-types.conf"
include_shell "/etc/lighttpd/ipv6.sh"
server.port = env.PORT
server.modules = ( "mod_alias" )
server.modules = ( "mod_alias", "mod_accesslog" )
server.username = "lighttpd"
server.groupname = "lighttpd"
server.document-root = "/www"
@ -10,3 +10,5 @@ alias.url = ( env.SUBFOLDER => "/www" )
server.indexfiles = ("index.html")
server.follow-symlink = "enable"
server.feature-flags += ( "server.clock-jump-restart" => 0 )
server.max-request-field-size = 65535
accesslog.filename = "/dev/fd/3"