projects
/
rainny.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ff6d0b8
)
Update example caddyfile (#2285)
author
sophie
<zvava@disroot.org>
Fri, 28 Mar 2025 09:19:34 +0000
(09:19 +0000)
committer
GitHub
<noreply@github.com>
Fri, 28 Mar 2025 09:19:34 +0000
(20:19 +1100)
contrib/caddy/caddyfile
patch
|
blob
|
history
diff --git
a/contrib/caddy/caddyfile
b/contrib/caddy/caddyfile
index e55efe92bcdf55006a5ea38b236b7c68cc4ff5e8..d23dcccbb06d1f5a93f785ea96531b7d99fa7860 100644
(file)
--- a/
contrib/caddy/caddyfile
+++ b/
contrib/caddy/caddyfile
@@
-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
}