Files
floorithardwoodfloors.com/infra/entrypoint.sh
T
acobham bc07e81514 Fix contact form POST routing and bake env into build
- nginx: route POST /contact/ to contact.php, GET to router.php
- Dockerfile: COPY .env into image
- entrypoint.sh: source .env on container start
- .dockerignore: allow .env to be included in build context
2026-06-04 00:30:40 +01:00

11 lines
238 B
Bash
Executable File

#!/bin/sh
set -e
if [ -f /var/www/html/.env ]; then
set -a; . /var/www/html/.env; set +a
fi
if [ -z "$ALTCHA_HMAC_KEY" ]; then
export ALTCHA_HMAC_KEY="$(openssl rand -hex 32)"
echo "Generated ALTCHA_HMAC_KEY" >&2
fi
exec "$@"