live aalai.ai
This commit is contained in:
@@ -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
13
app/nginx-container.conf
Normal 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;
|
||||
}
|
||||
@@ -14,7 +14,3 @@ services:
|
||||
- "8300:80"
|
||||
volumes:
|
||||
- ./app:/app
|
||||
|
||||
volumes:
|
||||
frontend:
|
||||
driver: local
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user