Skip to content

Commit

Permalink
Fix config for latest caddy releases
Browse files Browse the repository at this point in the history
The Commons Log format was dropped in caddy 2.5, cf. [1].

[1]: caddyserver/caddy#4148
  • Loading branch information
crazygolem committed Jun 4, 2023
1 parent 15109b5 commit 8a10cc7
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .local/bin/webserver
Expand Up @@ -77,9 +77,7 @@ localhost:$IPORT
root * /srv
file_server browse
log {
format single_field common_log
}
log
handle_errors {
handle {
Expand All @@ -89,13 +87,13 @@ handle_errors {
EOF


if (( UPDATE )) || ! podman image exists caddy; then
podman pull caddy
if (( UPDATE )) || ! podman image exists docker.io/caddy; then
podman pull docker.io/caddy
fi

echo "Serving on ${BIND}:${EPORT}..."
podman run --rm -it \
--publish "$BIND":"$EPORT":"$IPORT" \
--volume "$CADDYFILE":/etc/caddy/Caddyfile \
--volume "$ROOT":/srv:ro \
caddy
docker.io/caddy

0 comments on commit 8a10cc7

Please sign in to comment.