#!/bin/bash set -euo pipefail CMD="${SSH_ORIGINAL_COMMAND:-${1:-}}" if [[ "$CMD" =~ ^cert-[a-zA-Z0-9._-]+$ ]]; then APP="${CMD#cert-}" # Write temporary HTTP-only config so nginx can serve ACME challenges cat > "/opt/hantim/docker/nginx/conf.d/$APP.conf" <