Initial commit on Forgejo
Some checks are pending
CI and deploy / Test (push) Waiting to run
CI and deploy / Build, push, and deploy (push) Blocked by required conditions

Fresh repository history for elektrine/elektrine-haraka hosted at
https://git.elektrine.com/elektrine/elektrine-haraka.
This commit is contained in:
Maxfield Luke 2026-07-29 04:43:42 -04:00
commit 67c1d41a0c
82 changed files with 8713 additions and 0 deletions

38
docker/caddy/Caddyfile Normal file
View file

@ -0,0 +1,38 @@
{$HARAKA_DOMAIN:mail.example.com} {
# Automatic HTTPS with Let's Encrypt
# Caddy handles certificate generation and renewal automatically
# Access logs
log {
output file /data/access.log
}
# Internal API endpoints are not exposed through the public Haraka Caddy edge.
@api path /api/*
handle @api {
respond "Forbidden" 403
}
# Status, health, and metrics auth is enforced by Haraka itself.
@ops path /status /healthz
handle @ops {
reverse_proxy {$HARAKA_HTTP_UPSTREAM:haraka-outbound:8080} {
header_up X-Real-IP {remote_host}
}
}
handle /metrics {
reverse_proxy {$HARAKA_HTTP_UPSTREAM:haraka-outbound:8080} {
header_up X-Real-IP {remote_host}
}
}
# Default response for other paths
respond "elektrine-haraka Email Server" 404
}
# HTTP redirect (automatic)
http://{$HARAKA_DOMAIN:mail.example.com} {
redir https://{host}{uri} permanent
}