FastAPI + vanilla JS app run as a Docker container behind Caddy (HTTPS by IP). install.sh installs or updates it on a server in one command, with preflight checks and Docker setup; deploy.sh pushes a local checkout to a server over SSH and runs install.sh there. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
10 lines
246 B
Caddyfile
10 lines
246 B
Caddyfile
# HTTPS for the bare IP via Let's Encrypt short-lived IP certificates.
|
|
# install.sh fills in the site address below (the server's public IP, or SITE).
|
|
__SITE__ {
|
|
tls {
|
|
issuer acme {
|
|
profile shortlived
|
|
}
|
|
}
|
|
reverse_proxy 127.0.0.1:8080
|
|
}
|