Skip to content

Commit

Permalink
request cert also for www
Browse files Browse the repository at this point in the history
  • Loading branch information
zeeket committed Jul 8, 2024
1 parent 9522c9a commit 7603cf1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion infrastructure/templates/user-data.sh.tftpl
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down

0 comments on commit 7603cf1

Please sign in to comment.