mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -07:00
misc(Caddyfile): Some minor fixes (#1822)
This commit is contained in:
parent
dedf35b794
commit
6f641aa9d8
1 changed files with 6 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue