add example caddyfile (#2227)

This commit is contained in:
sophie 2025-02-28 07:31:54 +00:00 committed by GitHub
parent a2e651c869
commit be6d0f61e1

6
contrib/caddy/caddyfile Normal file
View file

@ -0,0 +1,6 @@
cinny.domain.tld {
@nativeRouter not file {path} /
rewrite @nativeRouter {http.matchers.file.relative}
root * /path/to/caddy/dist
file_server
}