[TOOLS] Added script to configure the installation and to bootstrap certificate creation with Let's Encrypt

This commit is contained in:
Hugo Sales
2020-05-06 11:57:32 +00:00
committed by Hugo Sales
parent e0b26ad38b
commit cf1a9fe893
4 changed files with 74 additions and 50 deletions

21
bin/bootstrap_certificates Executable file
View File

@@ -0,0 +1,21 @@
#!/bin/sh
read -p "Domain root: " domain_root
read -p "Subdomain (can be empty): " sub_domain
read -p "Email: " email
if [ -z $sub_domain ]; then
domain="${domain_root}"
else
domain="${sub_domain}.${domain_root}"
fi
mkdir -p ./docker/bootstrap
cat > ./docker/bootstrap/bootstrap.env <<EOF
email=${email}
domain=${domain}
domain_root=${domain_root}
EOF
docker-compose -f docker/bootstrap/bootstrap.yaml up