Modulo makers3d desarrollado con codex V 0.0.1

This commit is contained in:
Ryuk Mike
2026-07-29 23:58:58 +02:00
commit 2bedf7cbb7
171 changed files with 29421 additions and 0 deletions
+37
View File
@@ -0,0 +1,37 @@
#!/usr/bin/env bash
set -Eeuo pipefail
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
DOMAIN="${1:-dev.jazari.com.ar}"
EMAIL="${2:-}"
cd "${ROOT_DIR}"
mkdir -p infrastructure/nginx/runtime
cp infrastructure/nginx/nginx.http.conf infrastructure/nginx/runtime/nginx.conf
docker compose up -d nginx
CERTBOT_ARGS=(
run --rm
certbot
certonly
--webroot
-w /var/www/certbot
-d "${DOMAIN}"
--agree-tos
--non-interactive
)
if [[ -n "${EMAIL}" ]]; then
CERTBOT_ARGS+=(--email "${EMAIL}")
else
CERTBOT_ARGS+=(--register-unsafely-without-email)
fi
docker compose "${CERTBOT_ARGS[@]}"
cp infrastructure/nginx/nginx.https.conf infrastructure/nginx/runtime/nginx.conf
docker compose up -d --force-recreate nginx
echo "HTTPS listo para ${DOMAIN}"