Sign inSign up

mroggy85/caddy

By mroggy85

•Updated almost 4 years ago

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

Image
0

108

mroggy85/caddy repository overview

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⁠

Tag summary

Content type

Image

Digest

sha256:acdfe29c7…

Size

31.1 MB

Last updated

almost 4 years ago

docker pull mroggy85/caddy:2.6.2