mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-20 13:24:01 -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 {
|
example.com {
|
||||||
root * /path/to/root
|
root * /path/to/root
|
||||||
encode utf8
|
encode gzip zstd
|
||||||
php_fastcgi unix//run/php/php-fpm.sock
|
php_fastcgi unix//run/php/php-fpm.sock
|
||||||
try_files {path} {path}/ /index.php?{query}
|
try_files {path} {path}/ /index.php?{query}
|
||||||
file_server
|
file_server
|
||||||
|
@ -16,6 +16,11 @@ example.com {
|
||||||
respond @blocked 404
|
respond @blocked 404
|
||||||
|
|
||||||
redir /sitemap.xml /sitemap/sitemap.xml
|
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:
|
# Refer to the Caddy docs for more information:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue