fix lighttpd config in docker

This commit is contained in:
Julian 2025-06-10 17:04:37 +02:00
parent 12091c9e4d
commit 91d9041b0b
2 changed files with 9 additions and 4 deletions

View file

@ -5,5 +5,8 @@ WORKDIR /app
RUN npm install
RUN npm run build
COPY docker/lighttp.conf /app/lighttp.conf
CMD ["lighttpd", "-D", "-f", "/app/lighttp.conf"]
COPY docker/lighttpd.conf /app/lighttpd.conf
RUN mkdir -p /var/www
RUN mv dist/* /var/www
RUN lighttpd -tt -f lighttpd.conf
CMD ["lighttpd", "-D", "-f", "/app/lighttpd.conf"]

View file

@ -1,8 +1,10 @@
server.document-root = "/app/dist"
server.document-root = "/var/www"
# to test webhook
server.port = 3000
server.modules = ( "mod_indexfile" )
index-file.names = ( "index.html" )
# If running lighttpd earlier than lighttpd 1.4.71, uncomment (remove '#') to add the following:
#mimetype.assign = (
# ".html" => "text/html",