Skip to content

Commit 28c976f

Browse files
committed
feat: Add ingress configuration for GitDataWeb API
1 parent ffa0509 commit 28c976f

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

vite-project/charts/templates/ingress.yaml

+38
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,44 @@ spec:
6868
http:
6969
paths:
7070
- path: /api
71+
pathType: Prefix
72+
backend:
73+
service:
74+
name: gitdataos-svc
75+
port:
76+
number: 80
77+
---
78+
apiVersion: networking.k8s.io/v1
79+
kind: Ingress
80+
metadata:
81+
name: gitdataweb-http-git
82+
namespace: gitdata
83+
annotations:
84+
meta.helm.sh/release-name: gitdataweb-api
85+
nginx.ingress.kubernetes.io/proxy-connect-timeout: "30"
86+
nginx.ingress.kubernetes.io/proxy-read-timeout: "1800"
87+
nginx.ingress.kubernetes.io/proxy-send-timeout: "1800"
88+
nginx.ingress.kubernetes.io/enable-cors: "true"
89+
nginx.ingress.kubernetes.io/cors-allow-headers: "DNT,User-Agent,X-Requested-With,Content-Type,Authorization,Origin,Accept,Access-Control-Request-Method,Access-Control-Request-Headers"
90+
nginx.ingress.kubernetes.io/cors-max-age: "86400"
91+
nginx.ingress.kubernetes.io/cors-allow-methods: "GET, PUT, POST, DELETE, PATCH, OPTIONS"
92+
nginx.ingress.kubernetes.io/cors-expose-headers: "Content-Length,Content-Range"
93+
nginx.ingress.kubernetes.io/cors-allow-credentials: "true"
94+
nginx.ingress.kubernetes.io/proxy-cookie-path: / /
95+
nginx.ingress.kubernetes.io/proxy-set-header: "Cookie $http_cookie"
96+
97+
labels:
98+
apptype: gitdataweb-http-git
99+
app.kubernetes.io/managed-by: Helm
100+
heritage: Helm
101+
release: gitdataweb-http-git
102+
spec:
103+
ingressClassName: nginx
104+
rules:
105+
- host: jzhub.io
106+
http:
107+
paths:
108+
- path: /git
71109
pathType: Prefix
72110
backend:
73111
service:

0 commit comments

Comments
 (0)