xsshunter/docker-entrypoint.sh
Matthew Bryant (mandatory) 2f37219d8a first commit
2021-05-31 12:06:40 -07:00

9 lines
No EOL
344 B
Bash
Executable file

#!/usr/bin/env bash
echo "Initializing SSL/TLS..."
# Set up Greenlock
# Test if --maintainer-email is required, we can set it via environment variables...
npx greenlock init --config-dir /app/greenlock.d --maintainer-email $SSL_CONTACT_EMAIL
npx greenlock add --subject $HOSTNAME --altnames "$HOSTNAME"
echo "Starting server..."
node server.js