Add injectable ssl certs to baseline nginx instance too.

This commit is contained in:
Greyscale 2023-05-17 14:04:13 +02:00
parent 68efc8aaab
commit 36b6b093bc
No known key found for this signature in database
GPG key ID: 74BAFF55434DA4B2

View file

@ -1,3 +1,11 @@
#!/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
/usr/sbin/nginx