mroggy85/caddy

By mroggy85

Updated over 2 years ago

Caddy with transform-encoder plugin which enables you to use common_log. https://okuno.se/blog/

Image
0

21

Read more: https://okuno.se/blog/caddy-in-docker-with-common-log

Why?

From v2.5.0, Caddy no longer supports common_log log format. This image includes it.

Description

Caddy with transform-encoder plugin which enables you to use common_log log format. It enables you to write this in your Caddyfile:

log {
        format transform "{common_log}"
        output file /var/log/homepage.log
    }

Which will make your log files look like this (the IP is just an example):

211.6.12.144 - - [13/Jul/2022:18:28:43 +0000] "GET / HTTP/2.0" 304 0
211.6.12.144 - - [13/Jul/2022:18:28:44 +0000] "GET /api/session HTTP/2.0" 200 39

Read more: https://okuno.se/blog/caddy-in-docker-with-common-log

Docker Pull Command

docker pull mroggy85/caddy