- docker-compose.yml: baikal (ckulka/baikal:nginx) + caddy Reverse Proxy - Persistente Daten unter ./daten (config, data, caddy_certs) - Caddy-Image mit Entrypoint: erstellt beim Start automatisch ein selbstsigniertes 100-Jahres-Zertifikat, falls noch keins vorhanden ist - README mit Setup-, Backup- und Zertifikats-Anleitung
25 lines
484 B
Caddyfile
25 lines
484 B
Caddyfile
# Caddyfile fuer den Baikal CalDAV/CardDAV Server
|
|
#
|
|
# auto_https wird global abgeschaltet, weil wir selbst ein Zertifikat
|
|
# bereitstellen (siehe caddy/entrypoint.sh) statt Caddy per ACME/Let's
|
|
# Encrypt bzw. seiner internen CA (kurzlebige Zertifikate) machen zu lassen.
|
|
{
|
|
auto_https off
|
|
}
|
|
|
|
:443 {
|
|
tls /certs/baikal.crt /certs/baikal.key
|
|
|
|
reverse_proxy baikal:80
|
|
|
|
encode gzip
|
|
log {
|
|
output stdout
|
|
}
|
|
}
|
|
|
|
:80 {
|
|
# Reiner HTTP->HTTPS Redirect
|
|
redir https://{host}{uri} permanent
|
|
}
|