2021-08-27 04:57:25 +00:00
|
|
|
apiVersion: networking.k8s.io/v1
|
|
|
|
kind: Ingress
|
|
|
|
metadata:
|
2023-02-28 05:06:48 +00:00
|
|
|
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:
|
2023-02-28 05:06:48 +00:00
|
|
|
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
|