From 7603cf1f03f98c40bcf015cbfa0cc897e3b68ccd Mon Sep 17 00:00:00 2001 From: zeeket Date: Mon, 8 Jul 2024 20:48:58 +0300 Subject: [PATCH] request cert also for www --- infrastructure/templates/user-data.sh.tftpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infrastructure/templates/user-data.sh.tftpl b/infrastructure/templates/user-data.sh.tftpl index 18b5879..9382250 100644 --- a/infrastructure/templates/user-data.sh.tftpl +++ b/infrastructure/templates/user-data.sh.tftpl @@ -24,7 +24,7 @@ rmdir /opt/secrets %{ if DOMAIN != "" } echo "NEXTAUTH_URL=https://${DOMAIN}" | tee -a /opt/webapp/.env -sed -i 's/sub.yourdomain.org/'"${DOMAIN}"'/g' /opt/webapp/docker/nginx-conf/user_conf.d/tls.conf +sed -i 's/sub.yourdomain.org/'"${DOMAIN} www.${DOMAIN}"'/g' /opt/webapp/docker/nginx-conf/user_conf.d/tls.conf export CERTBOT_EMAIL=${CERTBOT_EMAIL} docker compose -f /opt/webapp/docker/docker-compose.prod.tls-registry.yml up -d %{ else }