File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ COPY docker/nginx.conf /etc/nginx/conf.d/default.conf
2222RUN 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
2727EXPOSE 80
2828HEALTHCHECK --interval=30s --timeout=3s --retries=3 CMD wget -qO- http://localhost/ || exit 1
Original file line number Diff line number Diff 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?)$ {
You can’t perform that action at this time.
0 commit comments