You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
474 B
Caddyfile
19 lines
474 B
Caddyfile
:80 {
|
|
log
|
|
|
|
# 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 *.woff2
|
|
}
|
|
header @static Cache-Control max-age=31536000
|
|
|
|
# Enable the static file server.
|
|
file_server
|
|
} |