seafile-containerized/k8s/seafile-ingress.yaml

51 lines
1.3 KiB
YAML
Raw Normal View History

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: seafile-ingress
annotations:
nginx.ingress.kubernetes.io/proxy-body-size: "0"
nginx.ingress.kubernetes.io/proxy-connect-timeout: "36000"
nginx.ingress.kubernetes.io/proxy-read-timeout: "36000"
nginx.ingress.kubernetes.io/proxy-send-timeout: "36000"
nginx.ingress.kubernetes.io/send-timeout: "36000"
nginx.ingress.kubernetes.io/rewrite-target: "/$2"
spec:
rules:
- host: localhost
http:
paths:
- path: /()(.*)
pathType: Prefix
backend:
service:
name: seahub
port:
number: 8000
- path: /seafhttp(/|$)(.*)
pathType: Prefix
backend:
service:
name: seafile-server
port:
number: 8082
2024-01-08 21:14:55 +00:00
- path: /()(seafdav.*)
pathType: Prefix
backend:
service:
name: seafile-server
port:
number: 8080
- path: /notification(/|$)(.*)
pathType: Prefix
backend:
service:
name: seafile-server
port:
number: 8083
2024-01-08 21:14:55 +00:00
- path: /()(media.*)
pathType: Prefix
backend:
service:
name: seahub-media
port:
number: 80