Thanks!
We can create a PR at the GitHub repo like:
{{ LMS_HOST }}{% if not ENABLE_HTTPS %}:80{% endif %} {
{{ patch("caddy_custom_certs") }}
reverse_proxy nginx:80 {
header_up X-Forwarded-Port {{ 443 if ENABLE_HTTPS else 80 }}
}
}