caddy软件配置
安装部署
基础配置
简单的静态网站配置:
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
}