FROM nginx:1.21
COPY nginx/bin/40-ssl-decoding.sh /docker-entrypoint.d/
RUN chmod +x /docker-entrypoint.d/40-ssl-decoding.sh
#!/bin/sh
echo "Decoding SSL certs...";
echo $SSL_KEY | base64 -d >> /etc/ssl/ssl.key;
echo $SSL_CRT | base64 -d >> /etc/ssl/ssl.crt;
echo "SSL certs decoded!";