diff --git a/nginx/default.conf b/nginx/default.conf index 5b6bdc1..427a8cb 100644 --- a/nginx/default.conf +++ b/nginx/default.conf @@ -36,6 +36,18 @@ server { proxy_set_header X-Forwarded-Proto $scheme; } + # Proxy /nw/* para o Backend — a Secretária IA do motor NewWhats consulta + # os dados desta clínica (rotas /nw/* do plugin satélite). + location /nw/ { + set $backend_upstream http://scoreodonto-backend:8018; + proxy_pass $backend_upstream; + proxy_http_version 1.1; + proxy_set_header Host $host; + 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; + } + # Proxy para o Frontend (Vite React SPA) location / { set $frontend_upstream http://scoreodonto-frontend:3013;