왜 Caddy인가
Caddy는 자동 HTTPS가 기본입니다. Let's Encrypt 인증서 발급/갱신이 완전 자동화되어 있습니다.
Caddyfile
example.com {
# 자동으로 HTTPS 설정됨
root * /var/www/html
file_server
handle /api/* {
reverse_proxy localhost:3000
}
handle /ws {
reverse_proxy localhost:3000
}
encode gzip zstd
}vs Nginx
- 설정이 훨씬 간단
- HTTPS 자동 (certbot 불필요)
- 성능은 Nginx와 비슷한 수준
댓글 0