add example caddyfile (#2227)
authorsophie <zvava@disroot.org>
Fri, 28 Feb 2025 07:31:54 +0000 (07:31 +0000)
committerGitHub <noreply@github.com>
Fri, 28 Feb 2025 07:31:54 +0000 (18:31 +1100)
contrib/caddy/caddyfile [new file with mode: 0644]

diff --git a/contrib/caddy/caddyfile b/contrib/caddy/caddyfile
new file mode 100644 (file)
index 0000000..e55efe9
--- /dev/null
@@ -0,0 +1,6 @@
+cinny.domain.tld {
+  @nativeRouter not file {path} /
+  rewrite @nativeRouter {http.matchers.file.relative}
+  root * /path/to/caddy/dist
+  file_server
+}