Update example caddyfile (#2285)
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
|
# more info: https://caddyserver.com/docs/caddyfile/patterns#single-page-apps-spas
|
||||||
cinny.domain.tld {
|
cinny.domain.tld {
|
||||||
@nativeRouter not file {path} /
|
root * /path/to/cinny/dist
|
||||||
rewrite @nativeRouter {http.matchers.file.relative}
|
try_files {path} / index.html
|
||||||
root * /path/to/caddy/dist
|
|
||||||
file_server
|
file_server
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user