diff --git a/charts/forgejo/templates/httproute.yaml b/charts/forgejo/templates/httproute.yaml index 24c7231..fb92fee 100644 --- a/charts/forgejo/templates/httproute.yaml +++ b/charts/forgejo/templates/httproute.yaml @@ -37,3 +37,11 @@ spec: backendRefs: - name: {{ .Values.route.serviceName }} port: {{ .Values.route.servicePort }} + + - matches: + - path: + type: PathPrefix + value: /v2/ + backendRefs: + - name: {{ .Values.route.serviceName }} + port: {{ .Values.route.servicePort }} diff --git a/rendered/forgejo/forgejo.yaml b/rendered/forgejo/forgejo.yaml index 5a8f7fb..7bf0362 100644 --- a/rendered/forgejo/forgejo.yaml +++ b/rendered/forgejo/forgejo.yaml @@ -121,3 +121,11 @@ spec: backendRefs: - name: forgejo port: 3000 + + - matches: + - path: + type: PathPrefix + value: /v2/ + backendRefs: + - name: forgejo + port: 3000