add example caddyfile (#2227)

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

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
}