parent
a6e5861220
commit
66f5cfef8c
@ -0,0 +1,17 @@
|
||||
:80 {
|
||||
# Set this path to your site's directory.
|
||||
root * /usr/share/caddy
|
||||
|
||||
# Compress responses according to Accept-Encoding headers
|
||||
encode zstd gzip
|
||||
|
||||
# Client side caching
|
||||
@static {
|
||||
file
|
||||
path *.ico *.css *.js *.gif *.jpg *.jpeg *.png *.svg *.woff
|
||||
}
|
||||
header @static Cache-Control max-age=5184000
|
||||
|
||||
# Enable the static file server.
|
||||
file_server
|
||||
}
|
Loading…
Reference in New Issue