Skip to content

Instantly share code, notes, and snippets.

@postadelmaga
postadelmaga / Caddyfile
Last active February 28, 2026 13:16
OpenMage local development ( Docker / Alpine ) with FrankenPHP + MariaDB
{
frankenphp
}
# ─── HTTP → HTTPS redirect ────────────────────────────────────────────────────
# Redirect all insecure requests to HTTPS except the admin domain,
# which may be accessed over HTTP in some internal/proxy setups.
http://{$FRONTEND_HOST}, http://{$PHPMYADMIN_HOST} {
redir https://{host}{uri} 301
}