Proxy patient routes without the cohort access token
This commit is contained in:
+1
-2
@@ -7,7 +7,6 @@ COPY . .
|
|||||||
RUN npx ng build --configuration production
|
RUN npx ng build --configuration production
|
||||||
|
|
||||||
FROM nginx:1.27-alpine
|
FROM nginx:1.27-alpine
|
||||||
ENV CAMA_COHORT_ACCESS_TOKEN=""
|
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||||
COPY nginx.conf /etc/nginx/templates/default.conf.template
|
|
||||||
COPY --from=build /app/dist/WebApp/browser /usr/share/nginx/html
|
COPY --from=build /app/dist/WebApp/browser /usr/share/nginx/html
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
|
|||||||
@@ -14,9 +14,6 @@ server {
|
|||||||
|
|
||||||
location ~ ^/(api|imports|data|cacu|cama|tea|governance|reportes|health)(/|$) {
|
location ~ ^/(api|imports|data|cacu|cama|tea|governance|reportes|health)(/|$) {
|
||||||
proxy_pass http://webapi:5000;
|
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 Host $host;
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
|
|||||||
Reference in New Issue
Block a user