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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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
}