diff --git a/entrypoint.sh b/entrypoint.sh index f7effc9..2998611 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -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 diff --git a/lighttpd.conf b/lighttpd.conf index a6e9ff5..2965450 100644 --- a/lighttpd.conf +++ b/lighttpd.conf @@ -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"