update caddyfile
This commit is contained in:
@@ -5,9 +5,15 @@
|
|||||||
|
|
||||||
atom.town {
|
atom.town {
|
||||||
root * /srv/home
|
root * /srv/home
|
||||||
file_server
|
|
||||||
encode zstd
|
encode zstd
|
||||||
|
|
||||||
|
@html path_regexp strip ^(.+)\.html$
|
||||||
|
redir @html {re.strip.1} permanent
|
||||||
|
|
||||||
|
try_files {path} {path}.html {path}/index.html
|
||||||
|
|
||||||
|
file_server
|
||||||
|
|
||||||
@assets path /assets/*
|
@assets path /assets/*
|
||||||
header @assets Cache-Control "public, max-age=604800, immutable"
|
header @assets Cache-Control "public, max-age=604800, immutable"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user