compose.server.yaml runs Supermarket behind Caddy (HTTPS from Let's Encrypt, Caddy's own CA or the team's), with Postgres on an internal network and a nightly pg_dump kept two weeks. install-server.sh asks for the domain, certificate and mail server, makes the secret key and database password, starts it all and prints the setup link. Settings → Backups lists the dumps on a server, and how the operator restores one. Checked end to end in Docker. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
16 lines
521 B
Caddyfile
16 lines
521 B
Caddyfile
# Caddy in front of Supermarket's server edition (compose.server.yaml).
|
|
# SUPERMARKET_ACME and SUPERMARKET_TLS are whole lines, or nothing (see
|
|
# compose.server.yaml); Caddy fills them in before reading this file.
|
|
{
|
|
{$SUPERMARKET_ACME}
|
|
}
|
|
|
|
{$SUPERMARKET_DOMAIN} {
|
|
{$SUPERMARKET_TLS}
|
|
encode zstd gzip
|
|
header Strict-Transport-Security "max-age=31536000"
|
|
# Caddy sets X-Forwarded-For to the client's address (it ignores what the
|
|
# client sent), which Supermarket's sign-in limits use.
|
|
reverse_proxy supermarket:8080
|
|
}
|