mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-18 17:31:50 +03:00
29 lines
575 B
Caddyfile
29 lines
575 B
Caddyfile
:80 {
|
|
root /* ./dist
|
|
|
|
file_server {
|
|
precompressed br
|
|
}
|
|
|
|
encode {
|
|
zstd
|
|
gzip 9
|
|
}
|
|
|
|
@notStatic {
|
|
not path /*.css
|
|
not path /*.js
|
|
not path /*.png
|
|
not path /*.jpg
|
|
not path /*.svg
|
|
not path /*.ttf
|
|
not path /*.eot
|
|
not path /*.woff
|
|
not path /*.woff2
|
|
}
|
|
|
|
handle @notStatic {
|
|
try_files {path} /index.html
|
|
}
|
|
}
|