代码拉取完成,页面将自动刷新
https://blog.test.com {
tls {
dns dnspod
}
gzip
header / -Server
header / -Vary
header /-S/ {
Cache-Control "public, max-age=99936000"
}
header /-/S/ {
Cache-Control "public, max-age=99936000"
}
header / Cache-Control "max-age=1"
log / /mnt/data/caddy/log/blog.test.com.log "{status} {size} {when_unix} {remote} {method} {uri_escaped} \"{>Referer}\" \"{>User-Agent}\""
errors /mnt/data/caddy/log/blog.test.com.error.log
rewrite {
if {file} not_ends_with .png
if {file} not_ends_with .svg
if {file} not_ends_with .ico
if {file} not_ends_with .json
if {file} not_ends_with .xml
if {file} not_ends_with .html
if {file} not_ends_with .htm
if {file} not_ends_with .txt
if {file} not_ends_with .toml
if {path} not_starts_with /-/S/
if {path} not_starts_with /-S/
if {path} not_match ^/-/.*\.(toml|md|html|json)$
to /
}
expires {
match .md$ 1m
match .toml$ 10m
match .ico$ 3y
match .png$ 3y
}
root /home/u88/blog.test.com
}
http://blog.test.com {
redir 302 {
https://blog.test.com{uri}
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。