From 3751d84da8eeb42ecc10e420ca33f3cb1d960d79 Mon Sep 17 00:00:00 2001 From: VPS 4 Builder Date: Sun, 28 Jun 2026 18:15:03 +0200 Subject: [PATCH] =?UTF-8?q?feat(nginx):=20rota=20/nw/*=20->=20backend=20(S?= =?UTF-8?q?ecret=C3=A1ria=20do=20motor=20consulta=20a=20cl=C3=ADnica)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit O motor NewWhats chama /nw/* no satélite (dados da clínica). nginx só roteava /api/* ao backend; adiciona location /nw/ -> scoreodonto-backend:8018. Co-Authored-By: Claude Opus 4.8 --- nginx/default.conf | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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;