From caf5f954b7ba99a63be269e2225334c7e8b9b145 Mon Sep 17 00:00:00 2001 From: Angel Capetillo Zavala Date: Fri, 13 Nov 2026 18:19:26 -0600 Subject: [PATCH] Proxy patient routes without the cohort access token --- Dockerfile | 3 +-- nginx.conf | 3 --- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index c559aef..2b54235 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,7 +7,6 @@ COPY . . RUN npx ng build --configuration production FROM nginx:1.27-alpine -ENV CAMA_COHORT_ACCESS_TOKEN="" -COPY nginx.conf /etc/nginx/templates/default.conf.template +COPY nginx.conf /etc/nginx/conf.d/default.conf COPY --from=build /app/dist/WebApp/browser /usr/share/nginx/html EXPOSE 80 diff --git a/nginx.conf b/nginx.conf index 30dc742..4c46b13 100644 --- a/nginx.conf +++ b/nginx.conf @@ -14,9 +14,6 @@ server { location ~ ^/(api|imports|data|cacu|cama|tea|governance|reportes|health)(/|$) { proxy_pass http://webapi:5000; - # The synthetic cohort token is supplied by the container environment, - # never by the browser. Override any client-supplied header. - proxy_set_header X-Cama-Cohort-Token "${CAMA_COHORT_ACCESS_TOKEN}"; proxy_set_header Host $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme;