From e51f44458605e66ce12f363db411c326b5e76bf9 Mon Sep 17 00:00:00 2001 From: dcs-soni <52232900+dcs-soni@users.noreply.github.com> Date: Mon, 10 Nov 2025 09:56:51 +0530 Subject: [PATCH 1/2] fix: mount ssl certs --- docker-compose.prod.yml | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml index 248cc83..3d71b05 100644 --- a/docker-compose.prod.yml +++ b/docker-compose.prod.yml @@ -124,26 +124,24 @@ services: dockerfile: apps/web/Dockerfile args: # Production API URL - VITE_API_URL: ${VITE_API_URL:-https://api.taskerra.com} + VITE_API_URL: ${VITE_API_URL:-https://taskerra.divyanshusoni.com} container_name: taskerra-web-prod environment: - # VITE_API_URL: ${VITE_API_URL:-https://api.taskerra.com} - VITE_API_URL: https://taskerra.divyanshusoni.com + VITE_API_URL: ${VITE_API_URL:-https://taskerra.divyanshusoni.com} ports: - "80:80" - "443:443" - # For HTTPS (need to configure SSL in nginx) - # - "443:443" volumes: - # Mount SSL certificates - - /etc/letsencrypt/live/taskerra.divyanshusoni.com:/etc/letsencrypt/live/taskerra.divyanshusoni.com:ro - - /etc/letsencrypt/archive/taskerra.divyanshusoni.com:/etc/letsencrypt/archive/taskerra.divyanshusoni.com:ro - # Mount new nginx config - - ./apps/web/nginx-ssl.conf:/etc/nginx/conf.d/default.conf:ro + # Mount SSL certificates (optional - nginx will work without them on HTTP) + # Create these on EC2 with: sudo certbot certonly --standalone -d taskerra.divyanshusoni.com + - /etc/letsencrypt/live/taskerra.divyanshusoni.com/fullchain.pem:/etc/nginx/ssl/fullchain.pem:ro + - /etc/letsencrypt/live/taskerra.divyanshusoni.com/privkey.pem:/etc/nginx/ssl/privkey.pem:ro + # Mount nginx config + - ./apps/web/nginx.conf:/etc/nginx/conf.d/default.conf:ro depends_on: backend: From b12e9c9bccc78a9b7c767ab940becccc0844ad00 Mon Sep 17 00:00:00 2001 From: dcs-soni <52232900+dcs-soni@users.noreply.github.com> Date: Mon, 10 Nov 2025 09:58:57 +0530 Subject: [PATCH 2/2] chore: minor fises --- docker-compose.prod.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml index 3d71b05..3502e20 100644 --- a/docker-compose.prod.yml +++ b/docker-compose.prod.yml @@ -63,7 +63,6 @@ services: HOST: 0.0.0.0 NODE_ENV: production - # Default JWT secret - CHANGE THIS in production! JWT_SECRET: ${JWT_SECRET:-taskerra-default-jwt-secret-please-change-in-production-min-32-characters} JWT_EXPIRES_IN: ${JWT_EXPIRES_IN:-7d} @@ -137,7 +136,7 @@ services: volumes: # Mount SSL certificates (optional - nginx will work without them on HTTP) - # Create these on EC2 with: sudo certbot certonly --standalone -d taskerra.divyanshusoni.com + # Created these on EC2 with: sudo certbot certonly --standalone -d taskerra.divyanshusoni.com - /etc/letsencrypt/live/taskerra.divyanshusoni.com/fullchain.pem:/etc/nginx/ssl/fullchain.pem:ro - /etc/letsencrypt/live/taskerra.divyanshusoni.com/privkey.pem:/etc/nginx/ssl/privkey.pem:ro # Mount nginx config