AaMao社区

caddy软件配置

软件 小杨博客 发布于 1 个月前

安装部署

基础配置

简单的静态网站配置:

example.com` {
    root * /srv
    file_server
}

配置反向代理到后端服务:

api.example.com {
    reverse_proxy localhost:8080
}

自动为配置的域名申请 SSL 证书:

secure.example.com {
    root * /srv
    file_server
    tls your-email@example.com
}
浏览(48) 打赏(0) 收藏(0)