chore: compact ingress rules with regex

This commit is contained in:
2026-06-11 14:20:03 +02:00
parent 30f0f05150
commit 68c5eac164
20 changed files with 58 additions and 421 deletions
+4 -39
View File
@@ -8,7 +8,7 @@ spec:
entryPoints:
- websecure
routes:
- match: Host(`nextcloud.forust.xyz`)
- match: HostRegexp(`^nextcloud\.forust\.xyz$`)
kind: Rule
middlewares:
- name: nextcloud-chain@file
@@ -27,25 +27,7 @@ spec:
entryPoints:
- websecure
routes:
- match: Host(`nextcloud.workstation.internal`)
kind: Rule
middlewares:
- name: nextcloud-chain@file
services:
- name: nextcloud-apache
port: 11000
---
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
name: nextcloud-dev
namespace: nextcloud
spec:
entryPoints:
- websecure
routes:
- match: Host(`nextcloud.gigaforust.internal`)
- match: HostRegexp(`^nextcloud\.(workstation|gigaforust)\.internal$`)
kind: Rule
middlewares:
- name: nextcloud-chain@file
@@ -64,7 +46,7 @@ spec:
entryPoints:
- websecure
routes:
- match: Host(`naio.forust.xyz`)
- match: HostRegexp(`^naio\.forust\.xyz$`)
kind: Rule
services:
- name: nextcloud-aio
@@ -83,7 +65,7 @@ spec:
entryPoints:
- websecure
routes:
- match: Host(`naio.workstation.internal`)
- match: HostRegexp(`^naio\.(workstation|gigaforust)\.internal$`)
kind: Rule
services:
- name: nextcloud-aio
@@ -91,20 +73,3 @@ spec:
scheme: https
serversTransport: insecure-transport
---
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
name: naio-dev
namespace: nextcloud
spec:
entryPoints:
- websecure
routes:
- match: Host(`naio.gigaforust.internal`)
kind: Rule
services:
- name: nextcloud-aio
port: 8888
scheme: https
serversTransport: insecure-transport