diff --git a/deploy.sh b/deploy.sh index 07344c0..d1ee510 100644 --- a/deploy.sh +++ b/deploy.sh @@ -165,8 +165,11 @@ if ! sudo docker-compose ps | grep "Up"; then exit 1 fi +# Setup automatic SSL certificate renewal... +( crontab -l 2>/dev/null; echo "0 */12 * * * certbot renew --quiet && systemctl reload nginx" ) | crontab - + # Output final message -echo "Deployment complete. Your Next.js app and PostgreSQL database are now running. +echo "Deployment complete. Your Next.js app and PostgreSQL database are now running. Next.js is available at https://$DOMAIN_NAME, and the PostgreSQL database is accessible from the web service. The .env file has been created with the following values: @@ -176,4 +179,4 @@ The .env file has been created with the following values: - DATABASE_URL - DATABASE_URL_EXTERNAL - SECRET_KEY -- NEXT_PUBLIC_SAFE_KEY" +- NEXT_PUBLIC_SAFE_KEY" \ No newline at end of file