From 38be6c13f76e893cf47636257071b440dec0c5b2 Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Sun, 7 Sep 2025 17:32:13 +0200 Subject: initial commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Robert Günzler --- bundles/lhost/files/Caddyfile | 45 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 bundles/lhost/files/Caddyfile (limited to 'bundles/lhost/files/Caddyfile') diff --git a/bundles/lhost/files/Caddyfile b/bundles/lhost/files/Caddyfile new file mode 100644 index 0000000..497ef30 --- /dev/null +++ b/bundles/lhost/files/Caddyfile @@ -0,0 +1,45 @@ +# vim: noet ts=2 sw=2 +{ + admin off + auto_https off + http_port {$CADDY_HTTP_PORT:1414} +} + +http:// { + encode zstd gzip + + handle /healthz { + respond OK 200 + } + + handle { + root . + file_server { + hide Caddyfile + hide .keep + } + } + + # catch all + respond 404 + + log { + format filter { + wrap console { + time_format wall_milli + level_format color + } + fields { + common_log delete + request>headers>Accept-Encoding delete + request>headers>Accept-Language delete + request>headers>Connection delete + request>headers>Authorization delete + request>remote_addr ip_mask { + ipv4 24 + ipv6 32 + } + } + } + } +} -- cgit 1.4.1