1 Star 0 Fork 0

八卦 / tool

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Caddyfile 1.22 KB
一键复制 编辑 原始数据 按行查看 历史
i8gua 提交于 2018-01-28 13:30 . .
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}
}
}
1
https://gitee.com/u8gua/tool.git
git@gitee.com:u8gua/tool.git
u8gua
tool
tool
master

搜索帮助