xsshunter/docker-entrypoint.sh

10 lines
359 B
Bash
Raw Normal View History

2021-05-31 19:06:40 +00:00
#!/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
2023-01-14 20:47:34 +00:00
npx greenlock add --subject $HOSTNAME --altnames "$HOSTNAME,$XSS_HOSTNAME"
2021-05-31 19:06:40 +00:00
echo "Starting server..."
2023-01-14 20:21:00 +00:00
node server.js