Add injectable ssl certs.
This commit is contained in:
parent
ad266aa308
commit
68efc8aaab
1 changed files with 9 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue