Skip to content

Commit e7a3294

Browse files
committed
Update Fe
1 parent 2d35c54 commit e7a3294

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

docker/angular-frontend.Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ RUN rm -rf /usr/share/nginx/html/*
2727
# copy artefact Angular
2828
COPY --from=build /app/dist/codecampus/browser/ /usr/share/nginx/html/
2929

30-
3130
EXPOSE 80
3231
HEALTHCHECK --interval=30s --timeout=3s --retries=3 CMD wget -qO- http://localhost/ || exit 1
3332
CMD ["nginx", "-g", "daemon off;"]

docker/nginx.conf

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)