1
0
Fork 0
home-stack-kustomize/kustomize/bases/nextcloud/nextcloud-ingress.yaml

58 lines
1.3 KiB
YAML
Raw Normal View History

2021-08-27 04:57:25 +00:00
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: server
2021-08-27 04:57:25 +00:00
labels:
app.kubernetes.io/name: nextcloud
2021-09-06 23:45:09 +00:00
probe: blackbox-http
2021-08-27 04:57:25 +00:00
spec:
rules:
- host: ${NEXTCLOUD_EXTERNAL_HOST}
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: server
2021-08-27 04:57:25 +00:00
port:
name: http
2023-06-17 02:29:18 +00:00
- path: /browser
pathType: Prefix
backend:
service:
name: collabora
port:
name: http
- path: /hosting/discovery
pathType: Prefix
backend:
service:
name: collabora
port:
name: http
- path: /hosting/capabilities
pathType: Prefix
backend:
service:
name: collabora
port:
name: http
- path: /cool
pathType: Prefix
backend:
service:
name: collabora
port:
name: http
2023-10-20 03:48:14 +00:00
---
# https://docs.nextcloud.com/server/27/admin_manual/issues/general_troubleshooting.html#service-discovery
apiVersion: traefik.containo.us/v1alpha1
kind: Middleware
metadata:
name: server-redirectregex
spec:
redirectRegex:
permanent: true
regex: https://(.*)/.well-known/(?:card|cal)dav
replacement: https://$${1}/remote.php/dav