Add injectable ssl certs.

This commit is contained in:
Greyscale 2023-05-15 00:06:48 +02:00
parent ad266aa308
commit 68efc8aaab
No known key found for this signature in database
GPG key ID: 74BAFF55434DA4B2

View file

@ -1,4 +1,13 @@
#!/usr/bin/env bash
if [ -z "${SSL_CERTIFICATE}" ]; then
echo "No certificate set, using defaults"
else
echo "Setting /certs/example.crt and /certs/example.key"
echo "${SSL_CERTIFICATE}}" > /certs/example.crt
echo "${SSL_CERTIFICATE_KEY}" > /certs/example.key
fi
if [ "${HTTP_ENABLE,,}" = "on" ]; then
echo "[NGINX] Starting Nginx"
/usr/sbin/nginx