From 91d9041b0b84a616133c3d1a9319cc831bbdee6c Mon Sep 17 00:00:00 2001 From: Julian Date: Tue, 10 Jun 2025 17:04:37 +0200 Subject: [PATCH] fix lighttpd config in docker --- Dockerfile | 7 +++++-- docker/{lighttp.conf => lighttpd.conf} | 6 ++++-- 2 files changed, 9 insertions(+), 4 deletions(-) rename docker/{lighttp.conf => lighttpd.conf} (69%) diff --git a/Dockerfile b/Dockerfile index 94cf630..3bbc217 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] diff --git a/docker/lighttp.conf b/docker/lighttpd.conf similarity index 69% rename from docker/lighttp.conf rename to docker/lighttpd.conf index 42c26dc..83d697d 100644 --- a/docker/lighttp.conf +++ b/docker/lighttpd.conf @@ -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",