Update example caddyfile ()

This commit is contained in:
sophie 2025-03-28 09:19:34 +00:00 committed by GitHub
parent ff6d0b8f9b
commit 405d1f6789
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,6 +1,6 @@
# more info: https://caddyserver.com/docs/caddyfile/patterns#single-page-apps-spas
cinny.domain.tld {
@nativeRouter not file {path} /
rewrite @nativeRouter {http.matchers.file.relative}
root * /path/to/caddy/dist
root * /path/to/cinny/dist
try_files {path} / index.html
file_server
}