1 Star 0 Fork 0

八卦/tool

Create your Gitee Account
Explore and code with more than 13.5 million developers,Free private repositories !:)
Sign up
文件
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
Caddyfile 1.22 KB
Copy Edit Raw Blame History
i8gua authored 2018-01-28 13:30 +08:00 . .
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}
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/u8gua/tool.git
git@gitee.com:u8gua/tool.git
u8gua
tool
tool
master

Search