This commit is contained in:
@@ -1,38 +0,0 @@
|
||||
upstream backend {
|
||||
server backend:5000;
|
||||
}
|
||||
|
||||
upstream frontend {
|
||||
server frontend:5173;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 8080;
|
||||
server_name _;
|
||||
|
||||
location /api/ {
|
||||
proxy_pass http://backend/api/;
|
||||
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;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
}
|
||||
|
||||
location / {
|
||||
proxy_pass http://frontend/;
|
||||
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;
|
||||
}
|
||||
|
||||
location /__vite_ping {
|
||||
access_log off;
|
||||
return 200 "pong\n" Content-Type "text/plain";
|
||||
}
|
||||
}
|
||||
Generated
-6
@@ -1,6 +0,0 @@
|
||||
{
|
||||
"name": "lunchtime-web",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {}
|
||||
}
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
services:
|
||||
nginx:
|
||||
volumes:
|
||||
- ../nginx.dev.conf:/etc/nginx/conf.d/default.conf:ro
|
||||
- ../nginx.conf:/etc/nginx/conf.d/default.conf:ro
|
||||
|
||||
backend:
|
||||
build:
|
||||
@@ -25,4 +25,4 @@ services:
|
||||
- ./frontend/tsconfig.json:/app/tsconfig.json
|
||||
- ./frontend/tsconfig.node.json:/app/tsconfig.node.json
|
||||
- /app/node_modules
|
||||
command: npm run dev -- --host 0.0.0.0 --port 5173
|
||||
command: npm run dev -- --host 0.0.0.0 --port 8000
|
||||
|
||||
Reference in New Issue
Block a user