58 lines
1.3 KiB
YAML
58 lines
1.3 KiB
YAML
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: server
|
|
labels:
|
|
app.kubernetes.io/name: nextcloud
|
|
probe: blackbox-http
|
|
spec:
|
|
rules:
|
|
- host: ${NEXTCLOUD_EXTERNAL_HOST}
|
|
http:
|
|
paths:
|
|
- path: /
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: server
|
|
port:
|
|
name: http
|
|
- 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
|
|
---
|
|
# 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 |