fix: guest and admin logic

This commit is contained in:
2026-06-22 11:41:34 +07:00
parent b1a539235b
commit 860395cb14
61 changed files with 1291 additions and 244 deletions
+10 -2
View File
@@ -1,6 +1,6 @@
server {
listen 80;
server_name localhost;
server_name yotrip.labz.io.vn localhost;
client_max_body_size 50M;
location / {
@@ -9,7 +9,7 @@ server {
try_files $uri $uri/ /index.html;
}
# Proxy requests to backend for deployment on same server/domain (optional but good practice)
# Proxy API requests to backend
location /api/v1/ {
proxy_pass http://backend:3001;
proxy_http_version 1.1;
@@ -19,6 +19,14 @@ server {
proxy_cache_bypass $http_upgrade;
}
# Serve uploaded files from backend
location /uploads/ {
proxy_pass http://backend:3001;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
# Proxy WebSocket connection
location /socket.io/ {
proxy_pass http://backend:3001;