Skip to content

Commit

Permalink
正規表現を使用
Browse files Browse the repository at this point in the history
  • Loading branch information
piny940 committed Oct 24, 2024
1 parent 2cf64a9 commit 5164c8f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions kubernetes/apps/auth/staging/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ kind: Ingress
metadata:
name: auth
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /
nginx.ingress.kubernetes.io/use-regex: "true"
nginx.ingress.kubernetes.io/rewrite-target: /$2
spec:
ingressClassName: nginx
tls:
Expand All @@ -14,7 +15,7 @@ spec:
- host: stg-auth.piny940.com
http:
paths:
- path: /api/v1
- path: /api/v1(/|$)(.*)
pathType: Prefix
backend:
service:
Expand Down

0 comments on commit 5164c8f

Please sign in to comment.