Skip to content

Commit

Permalink
fix: ingress yaml not to use snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
amber committed Oct 27, 2024
1 parent 865355f commit 6958d54
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
5 changes: 1 addition & 4 deletions helm/nshm/templates/argocd-ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ kind: Ingress
metadata:
name: argocd-ingress
namespace: argocd
annotations:
nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
nginx.ingress.kubernetes.io/backend-protocol: "HTTPS"
spec:
ingressClassName: nginx
rules:
Expand All @@ -18,4 +15,4 @@ spec:
service:
name: argocd-server
port:
number: 443
number: 80
14 changes: 7 additions & 7 deletions helm/nshm/templates/nshm-ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,43 +4,42 @@ metadata:
name: nshm-ingress
namespace: nshm
annotations:
nginx.ingress.kubernetes.io/configuration-snippet: |-
rewrite ^(/api)(.*) /$2 last;
nginx.ingress.kubernetes.io/rewrite-target: /$2
spec:
ingressClassName: nginx
rules:
- host: www.nshm.store
http:
paths:
- path: /auth
- path: /api/auth(/|$)(.*)
pathType: Prefix
backend:
service:
name: account
port:
number: 8081
- path: /accounts
- path: /api/accounts(/|$)(.*)
pathType: Prefix
backend:
service:
name: account
port:
number: 8081
- path: /items
- path: /api/items(/|$)(.*)
pathType: Prefix
backend:
service:
name: item
port:
number: 8082
- path: /wishlists
- path: /api/wishlists(/|$)(.*)
pathType: Prefix
backend:
service:
name: wishlist
port:
number: 8083
- path: /notification
- path: /api/notification(/|$)(.*)
pathType: Prefix
backend:
service:
Expand All @@ -61,3 +60,4 @@ spec:
name: web
port:
number: 3000

0 comments on commit 6958d54

Please sign in to comment.