update caddyfile
This commit is contained in:
@@ -5,9 +5,15 @@
|
||||
|
||||
atom.town {
|
||||
root * /srv/home
|
||||
file_server
|
||||
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/*
|
||||
header @assets Cache-Control "public, max-age=604800, immutable"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user