From 0030fbfc1a4069d61dbbfe02b12bf06211723507 Mon Sep 17 00:00:00 2001 From: RamkumarP Date: Tue, 1 Jul 2025 12:32:07 +0000 Subject: [PATCH] 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 +}