Skip to content

Commit

Permalink
Replaced file-browser's Caddy with lighttpd
Browse files Browse the repository at this point in the history
  • Loading branch information
rgaudin committed Dec 22, 2023
1 parent e694363 commit 8eb939a
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 48 deletions.
11 changes: 7 additions & 4 deletions file-browser/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
FROM caddy:2.6.1-alpine
FROM alpine:3.19
LABEL org.opencontainers.image.source https://github.com/offspot/container-images

RUN mkdir -p /data
COPY config.json /config/caddy/autosave.json
RUN apk add --no-cache lighttpd \
&& mkdir -p /data

CMD ["caddy", "run", "--resume"]
COPY lighttpd.conf /etc/lighttpd/lighttpd.conf

EXPOSE 80
CMD ["lighttpd", "-D", "-f", "/etc/lighttpd/lighttpd.conf"]
2 changes: 1 addition & 1 deletion file-browser/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# file-browser

An Caddy-based image for serving static files
A lighttpd-based image for serving static files

## Usage

Expand Down
43 changes: 0 additions & 43 deletions file-browser/config.json

This file was deleted.

6 changes: 6 additions & 0 deletions file-browser/lighttpd.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
server.document-root = "/data"
index-file.names = ( "index.html", "index.txt", "index" )
dir-listing.activate = "enable"
dir-listing.encoding = "utf-8"
dir-listing.sort = "disable"
dir-listing.cache = ( "path" => "/var/cache", "max-age" => 600 )

0 comments on commit 8eb939a

Please sign in to comment.