live aalai.ai

This commit is contained in:
2025-07-01 12:32:07 +00:00
parent 4b49813157
commit 0030fbfc1a
4 changed files with 17 additions and 10 deletions

View File

@@ -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

13
app/nginx-container.conf Normal file
View File

@@ -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;
}

View File

@@ -14,7 +14,3 @@ services:
- "8300:80"
volumes:
- ./app:/app
volumes:
frontend:
driver: local

View File

@@ -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;
}
}
}