taontech / githublog

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

caddyfile 配置 #37

Open taontech opened 1 year ago

taontech commented 1 year ago

线上的配置

供大家参考

https://taon.top {
    tls taontech@gmail.com
        encode gzip
        log {
                output file /var/log/caddywww.log
        }
    route /update {
            webhook {
                repo https://github.com/taontech/githublog.git
                branch main
                path /etc/caddy/githublog
                secret githublog
         }
    }
        root githublog
        file_server
        handle_errors {
                @404 {
                        expression {http.error.status_code} == 404
                }
                handle @404 {
                        rewrite * /404.html
                        file_server
                }
        }
}