Agregado ruteo nginx para las transformaciones de bundle ($ddcc/$dvc/$icvp2/$meow)

Las rutas GET /fhir/Bundle/:id/\$ddcc|\$dvc|\$icvp2|\$meow, implementadas en
bus-gateway/controllers/bundleSigner.js, no tenian ningun location que las
mandara a bus-gateway: caian todas al catch-all /fhir/ y terminaban en
hapi-fhir, que no las entiende. Se agrega un location por regex que las
matchea especificamente y las deja pasar a bus_gateway, sin afectar el
resto de rutas /fhir/Bundle/:id.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
Alejandro Gomez Auad 2026-07-15 16:50:47 +00:00
parent 7e1b0585e7
commit 7f8b603be6
2 changed files with 22 additions and 0 deletions

View File

@ -96,6 +96,17 @@ http {
proxy_read_timeout 90s;
}
# Transformaciones de bundle (nodo nacional, via bus-gateway/bundleSigner):
# /fhir/Bundle/:id/$ddcc, $dvc, $icvp2, $meow
location ~ ^/fhir/Bundle/[^/]+/\$(ddcc|dvc|icvp2|meow)$ {
proxy_pass http://bus_gateway;
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_read_timeout 90s;
}
# Resto de /fhir/* va a hapi-fhir
location /fhir/ {
proxy_pass http://hapi_fhir;

View File

@ -112,6 +112,17 @@ http {
proxy_read_timeout 90s;
}
# Transformaciones de bundle (nodo nacional, via bus-gateway/bundleSigner):
# /fhir/Bundle/:id/$ddcc, $dvc, $icvp2, $meow
location ~ ^/fhir/Bundle/[^/]+/\$(ddcc|dvc|icvp2|meow)$ {
proxy_pass http://bus_gateway;
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_read_timeout 90s;
}
# Resto de /fhir/* va a hapi-fhir
location /fhir/ {
proxy_pass http://hapi_fhir;