Skip to content

Commit

Permalink
Merge pull request #5 from ladesa-ro/dev-gabriel
Browse files Browse the repository at this point in the history
feat(services/api): no rewrite `/api`
  • Loading branch information
guesant authored Jun 24, 2024
2 parents ca70f02 + 47bd9a5 commit 6d63a90
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 10 deletions.
10 changes: 6 additions & 4 deletions 06-services/06-03-api/overlays/development/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@ kind: Ingress
metadata:
name: ladesa-ro-api-ingress
annotations:
nginx.ingress.kubernetes.io/use-regex: "true"
nginx.ingress.kubernetes.io/rewrite-target: /$2
# nginx.ingress.kubernetes.io/use-regex: "true"
# nginx.ingress.kubernetes.io/rewrite-target: /$2
spec:
rules:
- host: "luna.sisgha.com"
http:
paths:
- path: /api(/|$)(.*)
# - path: /api(/|$)(.*)
- path: /api/
pathType: ImplementationSpecific
backend:
service:
Expand All @@ -20,7 +21,8 @@ spec:
- host: "dev.ladesa.com.br"
http:
paths:
- path: /api(/|$)(.*)
# - path: /api(/|$)(.*)
- path: /api/
pathType: ImplementationSpecific
backend:
service:
Expand Down
7 changes: 4 additions & 3 deletions 06-services/06-03-api/overlays/local/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@ kind: Ingress
metadata:
name: ladesa-ro-api-ingress
annotations:
nginx.ingress.kubernetes.io/use-regex: "true"
nginx.ingress.kubernetes.io/rewrite-target: /$2
# nginx.ingress.kubernetes.io/use-regex: "true"
# nginx.ingress.kubernetes.io/rewrite-target: /$2
spec:
rules:
- host: "ing.kluster.local"
http:
paths:
- path: /api(/|$)(.*)
# - path: /api(/|$)(.*)
- path: /api/
pathType: ImplementationSpecific
backend:
service:
Expand Down
18 changes: 15 additions & 3 deletions 06-services/06-03-api/overlays/production/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,26 @@ kind: Ingress
metadata:
name: ladesa-ro-api-ingress
annotations:
nginx.ingress.kubernetes.io/use-regex: "true"
nginx.ingress.kubernetes.io/rewrite-target: /$2
# nginx.ingress.kubernetes.io/use-regex: "true"
# nginx.ingress.kubernetes.io/rewrite-target: /$2
spec:
rules:
- host: "sisgha.com"
http:
paths:
# - path: /api(/|$)(.*)
- path: /api/
pathType: ImplementationSpecific
backend:
service:
name: ladesa-ro-api
port:
name: web
- host: "ladesa.com.br"
http:
paths:
- path: /api(/|$)(.*)
# - path: /api(/|$)(.*)
- path: /api/
pathType: ImplementationSpecific
backend:
service:
Expand Down

0 comments on commit 6d63a90

Please sign in to comment.