about summary refs log tree commit diff
path: root/Caddyfile
diff options
context:
space:
mode:
authorRobert Günzler <r@gnzler.io>2026-10-02 10:33:53 +0200
committerRobert Günzler <r@gnzler.io>2026-10-02 10:45:00 +0200
commit3c588cb48d4d3026c8a00faa8732c0655328e63c (patch)
tree535ea33bf7fbd30e0fef1ebbf2a5c975418d5f14 /Caddyfile
parentf8a7a9ab00efe774f28f8f3211aef90a9abfc6be (diff)
downloadsite-3c588cb48d4d3026c8a00faa8732c0655328e63c.tar.gz
*
Automated-commit-by: commitall
Signed-off-by: Robert Günzler <r@gnzler.io>
Diffstat (limited to 'Caddyfile')
-rw-r--r--Caddyfile53
1 files changed, 0 insertions, 53 deletions
diff --git a/Caddyfile b/Caddyfile
deleted file mode 100644
index b2997b4..0000000
--- a/Caddyfile
+++ /dev/null
@@ -1,53 +0,0 @@
-# vim: noet ts=2 sw=2
-{
-	admin off
-	auto_https off
-	http_port {$CADDY_HTTP_PORT:1414}
-	default_bind {$CADDY_HOST:0.0.0.0}
-}
-
-http:// {
-	encode zstd gzip
-
-	handle /healthz {
-		respond OK 200
-	}
-
-	handle_errors {
-		@404 expression {http.error.status_code} == 404
-		rewrite @404 /site/404.html
-		file_server
-	}
-
-	@valid_paths {
-		import Caddyfile.valid_paths
-	}
-	handle @valid_paths {
-		root .
-		try_files {path} {path}/index.html {path}.html =404
-		file_server
-	}
-
-	# 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
-				}
-			}
-		}
-	}
-}