summaryrefslogtreecommitdiff
path: root/init-letsencrypt.sh
diff options
context:
space:
mode:
Diffstat (limited to 'init-letsencrypt.sh')
-rwxr-xr-xinit-letsencrypt.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/init-letsencrypt.sh b/init-letsencrypt.sh
index 13eaa75..1a4d3e3 100755
--- a/init-letsencrypt.sh
+++ b/init-letsencrypt.sh
@@ -5,7 +5,9 @@ if ! [ -x "$(command -v docker-compose)" ]; then
exit 1
fi
-domains=(example.org www.example.org)
+HOST_NAME=$(grep HOST_NAME .env | cut -d '=' -f2)
+
+domains=($HOST_NAME)
rsa_key_size=4096
data_path="./data/certbot"
email="" # Adding a valid address is strongly recommended