misc(Caddyfile): Some minor fixes (#1822)

This commit is contained in:
Roman Kelesidis 2025-02-20 18:48:56 +03:00 committed by GitHub
commit 6f641aa9d8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2,7 +2,7 @@
example.com {
root * /path/to/root
encode utf8
encode gzip zstd
php_fastcgi unix//run/php/php-fpm.sock
try_files {path} {path}/ /index.php?{query}
file_server
@ -16,6 +16,11 @@ example.com {
respond @blocked 404
redir /sitemap.xml /sitemap/sitemap.xml
@html_css_js {
path *.html *.css *.js *.json *.xml *.txt
}
header @html_css_js Content-Type "{mime}; charset=utf-8"
}
# Refer to the Caddy docs for more information: