Caddy2 配置简介

用了caddy2来作为web介入server,来作为自动的https提供和接入,这里记录一下配置。


<host> {
        reverse_proxy /getvip_info 127.0.0.1:31198 {
                header_up -Origin

                header_up Connection Upgrade
                header_up Upgrade websocket
        }
    }



<host> {
        log {
                output  file /var/log/caddy/blog.log
        }
        reverse_proxy / 192.168.x.x:80 {

        }
    }

<host> {
        log {
                output  file /var/log/caddy/blog.log
        }
        reverse_proxy / 192.168.x.x:80 {
        }
    }

<host>{
        tls {
           dns cloudflare xxxx
        }
        log {
           output  file /var/log/caddy/blog.log
        }
        reverse_proxy / 192.168.x.x:80 {
        }
    }

    import sites/*

留下点什么吧