Skip to content

Commit 65b5d09

Browse files
committed
Update deploy fe
1 parent ec79275 commit 65b5d09

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

docker/angular-frontend.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ COPY docker/nginx.conf /etc/nginx/conf.d/default.conf
2222
RUN rm -rf /usr/share/nginx/html/*
2323

2424
# copy artefact Angular
25-
COPY --from=build /app/dist/codecampus/ /usr/share/nginx/html/
25+
COPY --from=build /app/dist/codecampus/browser/ /usr/share/nginx/html/
2626

2727
EXPOSE 80
2828
HEALTHCHECK --interval=30s --timeout=3s --retries=3 CMD wget -qO- http://localhost/ || exit 1

docker/nginx.conf

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ server {
55
root /usr/share/nginx/html;
66
index index.html;
77

8-
# # Proxy API -> gateway-service
9-
# 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;
13-
# proxy_http_version 1.1;
14-
# proxy_set_header Connection "";
15-
# }
8+
# Proxy API -> gateway-service
9+
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;
13+
proxy_http_version 1.1;
14+
proxy_set_header Connection "";
15+
}
1616

1717
# Cache tĩnh nhẹ nhàng
1818
location ~* \.(?:js|css|png|jpg|jpeg|gif|svg|ico|woff2?)$ {

0 commit comments

Comments
 (0)