server { listen 80; server_name localhost; # Điều hướng API tới Backend location /api { # 'backend' là tên service được định nghĩa trong docker-compose.yaml proxy_pass http://host.docker.internal:32080; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } # Điều hướng phần còn lại tới Frontend location / { # 'frontend' là tên service được định nghĩa trong docker-compose.yaml proxy_pass http://host.docker.internal:3000; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; } }