Update example caddyfile (#2285)
authorsophie <zvava@disroot.org>
Fri, 28 Mar 2025 09:19:34 +0000 (09:19 +0000)
committerGitHub <noreply@github.com>
Fri, 28 Mar 2025 09:19:34 +0000 (20:19 +1100)
contrib/caddy/caddyfile

index e55efe92bcdf55006a5ea38b236b7c68cc4ff5e8..d23dcccbb06d1f5a93f785ea96531b7d99fa7860 100644 (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
 }