Skip to content

Commit

Permalink
khagu-dev-front:1.1.8.2, change api url par http://back-service.defau…
Browse files Browse the repository at this point in the history
  • Loading branch information
Khagou committed Mar 24, 2024
1 parent a369319 commit f07a9d5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 15 deletions.
9 changes: 1 addition & 8 deletions client/prod-front.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ spec:
spec:
containers:
- name: khagu-dev-front
image: "europe-west1-docker.pkg.dev/khagu-devops/khagu-dev-images-registry/khagu-dev-front:1.1.8.1" # Remplacer par votre repo
image: "europe-west1-docker.pkg.dev/khagu-devops/khagu-dev-images-registry/khagu-dev-front:1.1.8.2" # Remplacer par votre repo
ports:
- containerPort: 80
- containerPort: 7000
Expand Down Expand Up @@ -69,13 +69,6 @@ spec:
- host: www.projet.khagu-dev.fr
http:
paths:
- pathType: Prefix
path: "/api"
backend:
service:
name: back-service
port:
number: 7000
- pathType: Prefix
path: "/"
backend:
Expand Down
14 changes: 7 additions & 7 deletions server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ app.use("/api/tech", techRoutes);
app.use("/api/images", imagesRoutes);
app.use("/api/article", articleRoutes);

app.use('/api', createProxyMiddleware({
target: 'http://back-service.default.svc.cluster.local:7000',
changeOrigin: true,
onProxyRes: function (proxyRes, req, res) {
proxyRes.headers['Access-Control-Allow-Origin'] = '*';
}
}));
// app.use('/api', createProxyMiddleware({
// target: 'http://back-service.default.svc.cluster.local:7000',
// changeOrigin: true,
// onProxyRes: function (proxyRes, req, res) {
// proxyRes.headers['Access-Control-Allow-Origin'] = '*';
// }
// }));



Expand Down

0 comments on commit f07a9d5

Please sign in to comment.