From d7d46f08d166c65a8f353a7dfe7c336ea72e6def Mon Sep 17 00:00:00 2001 From: rithishsamm Date: Tue, 1 Jul 2025 07:44:12 +0000 Subject: [PATCH] updated nginx.conf - domain added to go live - aalai.ai --- app/nginx.conf | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/app/nginx.conf b/app/nginx.conf index 6c3bbfb..03c6764 100644 --- a/app/nginx.conf +++ b/app/nginx.conf @@ -1,14 +1,13 @@ -server { - listen 3000; - server_name localhost; - - root /usr/share/nginx/html; - index index.html; - - location / { - try_files $uri /index.html; - } - - # Redirect 404 errors to index.html (for React Router) - error_page 404 /index.html; +server { + listen 3000; + server_name aalai.ai www.aalai.ai; + + location / { + 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