Initial commit

Add nginx and certbot configurations
This commit is contained in:
2023-10-09 09:48:30 +03:00
commit 7af75ad55d
17 changed files with 468 additions and 0 deletions

14
certbot_manual.sh Executable file
View File

@@ -0,0 +1,14 @@
#!/bin/sh
SSL_VOLUME_NAME=ssl_nginx_ssl
LETSENCRYPT_VOLUME_NAME=ssl_nginx_letsencrypt
if [ "$EMAIL" = '' ]; then
echo "Set EMAIL environment variable to run this!"
exit 1
fi
docker build --tag certbot_manual_test --build-arg EMAIL="$EMAIL" certbot
echo "ececute 'cat /run_once' to get commands list"
echo "for wildcard domains use manual mode with dns challange: 'certbot certonly -d '*.domain' --manual --preferred-challenges dns"
docker run -it --rm -v $SSL_VOLUME_NAME:/ssl -v $LETSENCRYPT_VOLUME_NAME:/etc/letsencrypt --entrypoint /bin/bash certbot_manual_test
docker rmi certbot_manual_test