thermograph/deploy/Caddyfile
Emi Griffith 9fd1839ce9 Initial commit: app +
VPS deploy pipeline
2026-07-10 17:29:47 -07:00

24 lines
699 B
Caddyfile

# /etc/caddy/Caddyfile on the VPS.
# Replace thermograph.example.com with your real hostname. Its A/AAAA record
# must already point at this VPS — Caddy provisions a Let's Encrypt cert on
# first request and auto-renews. Nothing else to do for TLS.
thermograph.example.com {
encode zstd gzip
# Reverse-proxy to the loopback uvicorn (see thermograph.service).
reverse_proxy 127.0.0.1:8137
log {
output file /var/log/caddy/thermograph.log
}
}
# If you keep THERMOGRAPH_BASE=/thermograph instead of serving at the root,
# use this block instead of the one above:
#
# thermograph.example.com {
# encode zstd gzip
# reverse_proxy /thermograph/* 127.0.0.1:8137
# redir / /thermograph/
# }