File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,6 @@ RUN rm -rf /usr/share/nginx/html/*
2727# copy artefact Angular
2828COPY --from=build /app/dist/codecampus/browser/ /usr/share/nginx/html/
2929
30-
3130EXPOSE 80
3231HEALTHCHECK --interval=30s --timeout=3s --retries=3 CMD wget -qO- http://localhost/ || exit 1
3332CMD ["nginx" , "-g" , "daemon off;" ]
Original file line number Diff line number Diff line change @@ -7,10 +7,13 @@ server {
77
88 # Proxy API -> gateway-service
99 location /api/ {
10- proxy_pass http ://gateway-service:8888 /api/;
11- proxy_set_header Host $host ;
12- proxy_set_header X-Real-IP $remote_addr ;
10+ proxy_pass http ://gateway-service:8888 /api/v1/;
11+
1312 proxy_http_version 1.1;
13+ proxy_set_header Host $host ;
14+ proxy_set_header X-Real-IP $remote_addr ;
15+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for ;
16+ proxy_set_header X-Forwarded-Proto $scheme ;
1417 proxy_set_header Connection "" ;
1518 }
1619
You can’t perform that action at this time.
0 commit comments