First Commit

This commit is contained in:
Andrew Hurley 2022-11-05 20:04:52 +08:00
commit a857bce00b
2 changed files with 12 additions and 0 deletions

10
80-de-certbot Normal file
View File

@ -0,0 +1,10 @@
#!/usr/bin/with-contenv bash
cd /config/keys
if [[ -f custom-cert.crt && -f custom-cert.key ]]; then
echo "Using custom certificate as main certs. Certbot certs now named 'dcert.crt' and 'dcert.key'."
mv cert.crt dcert.crt
mv cert.key dcert.key
mv custom-cert.crt cert.crt
mv custom-cert.key cert.key
fi

2
Dockerfile Normal file
View File

@ -0,0 +1,2 @@
FROM lscr.io/linuxserver/swag:1.31.0
COPY 80-de-certbot /root/etc/cont-init.d/80-de-certbot