From 65b515b1a214b6c2c11f9a07e69970a49683284b Mon Sep 17 00:00:00 2001 From: rithishsamm Date: Tue, 1 Jul 2025 09:37:14 +0000 Subject: [PATCH 1/8] reverting back to nginx default --- compose.yaml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/compose.yaml b/compose.yaml index 6d1e6b0..4d0e3b8 100644 --- a/compose.yaml +++ b/compose.yaml @@ -11,11 +11,7 @@ services: stdin_open: true tty: true ports: - - "8300:3000" - environment: - - WDS_SOCKET_PORT=0 - - PORT=3000 - - DOCSIFY_PORT=8201 + - "8300:80" volumes: - ./app:/app From 7653ebd5f6a8a19e380c5bd4967406b69a5edf57 Mon Sep 17 00:00:00 2001 From: Marikannan Date: Tue, 1 Jul 2025 10:46:15 +0000 Subject: [PATCH 2/8] Update compose.yaml --- compose.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compose.yaml b/compose.yaml index 4d0e3b8..13056b4 100644 --- a/compose.yaml +++ b/compose.yaml @@ -11,7 +11,7 @@ services: stdin_open: true tty: true ports: - - "8300:80" + - "80:80" volumes: - ./app:/app From c99aa0e74a1e6a213892fa4a104ebbd05481a955 Mon Sep 17 00:00:00 2001 From: Marikannan Date: Tue, 1 Jul 2025 10:59:50 +0000 Subject: [PATCH 3/8] Update compose.yaml --- compose.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compose.yaml b/compose.yaml index 13056b4..4d0e3b8 100644 --- a/compose.yaml +++ b/compose.yaml @@ -11,7 +11,7 @@ services: stdin_open: true tty: true ports: - - "80:80" + - "8300:80" volumes: - ./app:/app From 18c914f411419945ca063877ea4e6799a15f9be7 Mon Sep 17 00:00:00 2001 From: Marikannan Date: Tue, 1 Jul 2025 11:17:01 +0000 Subject: [PATCH 4/8] Update app/nginx.conf --- app/nginx.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/nginx.conf b/app/nginx.conf index ab22753..a574f73 100644 --- a/app/nginx.conf +++ b/app/nginx.conf @@ -1,6 +1,6 @@ server { listen 80; - server_name aalai.ai www.aalai.ai; + server_name aalai.ai www.aalai.ai 185.100.212.76; location / { proxy_pass http://127.0.0.1:8300; From 4b4981315702b73f159de46e1e53d0f71b5bfd0c Mon Sep 17 00:00:00 2001 From: Marikannan Date: Tue, 1 Jul 2025 12:07:21 +0000 Subject: [PATCH 5/8] Update app/nginx.conf --- app/nginx.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/nginx.conf b/app/nginx.conf index a574f73..a8cd76f 100644 --- a/app/nginx.conf +++ b/app/nginx.conf @@ -3,7 +3,7 @@ server { server_name aalai.ai www.aalai.ai 185.100.212.76; location / { - proxy_pass http://127.0.0.1:8300; + proxy_pass http://frontend:8300; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection 'upgrade'; From 0030fbfc1a4069d61dbbfe02b12bf06211723507 Mon Sep 17 00:00:00 2001 From: RamkumarP Date: Tue, 1 Jul 2025 12:32:07 +0000 Subject: [PATCH 6/8] live aalai.ai --- app/Dockerfile | 2 +- app/nginx-container.conf | 13 +++++++++++++ compose.yaml | 4 ---- app/nginx.conf => nginx-compose.conf | 8 +++----- 4 files changed, 17 insertions(+), 10 deletions(-) create mode 100644 app/nginx-container.conf rename app/nginx.conf => nginx-compose.conf (71%) diff --git a/app/Dockerfile b/app/Dockerfile index 0c5c8ac..c780015 100644 --- a/app/Dockerfile +++ b/app/Dockerfile @@ -42,7 +42,7 @@ FROM nginx:alpine COPY --from=development /frontend/build /usr/share/nginx/html # Optionally copy a custom Nginx config (if needed) -COPY nginx.conf /etc/nginx/conf.d/default.conf +COPY nginx-container.conf /etc/nginx/conf.d/default.conf # Expose port 80 for Nginx (default HTTP port) EXPOSE 80 diff --git a/app/nginx-container.conf b/app/nginx-container.conf new file mode 100644 index 0000000..8bf7166 --- /dev/null +++ b/app/nginx-container.conf @@ -0,0 +1,13 @@ +server { + listen 80; + server_name localhost; + + root /usr/share/nginx/html; + index index.html; + + location / { + try_files $uri /index.html; + } + + error_page 404 /index.html; +} diff --git a/compose.yaml b/compose.yaml index 4d0e3b8..60ae66f 100644 --- a/compose.yaml +++ b/compose.yaml @@ -14,7 +14,3 @@ services: - "8300:80" volumes: - ./app:/app - -volumes: - frontend: - driver: local diff --git a/app/nginx.conf b/nginx-compose.conf similarity index 71% rename from app/nginx.conf rename to nginx-compose.conf index a8cd76f..ee620a5 100644 --- a/app/nginx.conf +++ b/nginx-compose.conf @@ -1,15 +1,13 @@ server { listen 80; - server_name aalai.ai www.aalai.ai 185.100.212.76; + server_name aalai.ai www.aalai.ai; location / { - proxy_pass http://frontend:8300; + proxy_pass http://127.0.0.1:8300; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection 'upgrade'; proxy_set_header Host $host; proxy_cache_bypass $http_upgrade; } - - -} \ No newline at end of file +} From 3ef2ed82a815f91591a4a7dad92739bde5afbf39 Mon Sep 17 00:00:00 2001 From: RamkumarP Date: Tue, 1 Jul 2025 13:05:18 +0000 Subject: [PATCH 7/8] live aalai.ai+2 --- compose.yaml | 2 +- nginx-compose.conf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/compose.yaml b/compose.yaml index 60ae66f..f0db25b 100644 --- a/compose.yaml +++ b/compose.yaml @@ -11,6 +11,6 @@ services: stdin_open: true tty: true ports: - - "8300:80" + - "80:80" volumes: - ./app:/app diff --git a/nginx-compose.conf b/nginx-compose.conf index ee620a5..081db77 100644 --- a/nginx-compose.conf +++ b/nginx-compose.conf @@ -3,7 +3,7 @@ server { server_name aalai.ai www.aalai.ai; location / { - proxy_pass http://127.0.0.1:8300; + proxy_pass http://127.0.0.1:80; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection 'upgrade'; From aebefca0335cd4cba3a34c32efb9549d11cb3790 Mon Sep 17 00:00:00 2001 From: RamkumarP Date: Tue, 1 Jul 2025 13:21:59 +0000 Subject: [PATCH 8/8] live aalai.ai-1 --- compose.yaml | 2 +- nginx-compose.conf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/compose.yaml b/compose.yaml index f0db25b..60ae66f 100644 --- a/compose.yaml +++ b/compose.yaml @@ -11,6 +11,6 @@ services: stdin_open: true tty: true ports: - - "80:80" + - "8300:80" volumes: - ./app:/app diff --git a/nginx-compose.conf b/nginx-compose.conf index 081db77..ee620a5 100644 --- a/nginx-compose.conf +++ b/nginx-compose.conf @@ -3,7 +3,7 @@ server { server_name aalai.ai www.aalai.ai; location / { - proxy_pass http://127.0.0.1:80; + proxy_pass http://127.0.0.1:8300; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection 'upgrade';