seafile-containerized/k8s/seafile-ingress.yaml
2024-01-08 22:14:55 +01:00

51 lines
1.3 KiB
YAML

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
- path: /()(seafdav.*)
pathType: Prefix
backend:
service:
name: seafile-server
port:
number: 8080
- path: /notification(/|$)(.*)
pathType: Prefix
backend:
service:
name: seafile-server
port:
number: 8083
- path: /()(media.*)
pathType: Prefix
backend:
service:
name: seahub-media
port:
number: 80