taontech / githublog

一个基于github issues的博客系统,实时呈现,零依赖,零代码部署,不用打包不用上线。
4 stars 1 forks source link

Caddy2 http3 配置 #95

Open taontech opened 12 months ago

taontech commented 12 months ago

检测可以支持H3

{
    servers {
        protocols h1 h2 h3
    }
}
https://youdomain.domain:443 {
    tls ***@***.com
    encode zstd gzip
    log {
        output file /var/log/caddywww.log
    }
    header {
        alt-svc h3=":443", ma=2592000
    }

    root /your/root/
    file_server
    handle_errors {
        @404 {
            expression {http.error.status_code} == 404
        }
        handle @404 {
            rewrite * /404.html
            file_server
        }
    }
}