fix: correct Traefik rule syntax for local IngressRoutes

Move parentheses outside Host() calls so that || and && operators
are properly grouped in Traefik rule expressions.
This commit is contained in:
2026-06-28 11:59:52 +02:00
parent 91211e7b78
commit bacb2f4b9f
4 changed files with 29 additions and 6 deletions
+4 -4
View File
@@ -32,7 +32,7 @@ streaming/data/*
streaming/qbittorrent/*
streaming/prowlarr/*
# Homepage
# Homepage
homepages/forust_files/.well-known/*
# Traefik files
@@ -40,7 +40,7 @@ traefik/letsencrypt/acme.json
traefik/dynamic/fileservers.yml
traefik/dynamic/*.local.y*ml.*
traefik/dynamic/*.external.y*ml
traefik/k8s/fileservers.y*ml
traefik/logs/*
@@ -52,7 +52,7 @@ certs/
# Monitoring
monitoring/prometheus.yml
# Python
# Python
.python-version
venv/
pyc
@@ -93,7 +93,7 @@ replacements.txt
edu_master/temp/
temp/*
# Environment
# Environment
.env
.env.anna
.env.forust
+1 -1
View File
@@ -38,4 +38,4 @@ spec:
services:
- name: adguard-service
port: 3000
- match: Host((`adguard.workstation.internal`) || Host(`dns.workstation.internal`) || Host(`adguard.gigaforust.internal`) || Host(`dns.gigaforust.internal`)) && PathPrefix(`/dns-query`)
- match: (Host(`adguard.workstation.internal`) || Host(`dns.workstation.internal`) || Host(`adguard.gigaforust.internal`) || Host(`dns.gigaforust.internal`)) && PathPrefix(`/dns-query`)
+1 -1
View File
@@ -38,7 +38,7 @@ spec:
services:
- name: gitea-service
port: 3000
- match: Host((`gcr.workstation.internal`) || Host(`gcr.gigaforust.internal)) && PathPrefix(`/v2`)
- match: (Host(`gcr.workstation.internal`) || Host(`gcr.gigaforust.internal`)) && PathPrefix(`/v2`)
kind: Rule
services:
- name: gitea-service
+23
View File
@@ -0,0 +1,23 @@
http:
routers:
fs1-public:
rule: "Host(`fs1.domain.xyz`)"
entrypoints:
- websecure
service: fs1
middlewares:
- security-chain@file
tls: {}
fs1-workstation:
rule: "Host(`fs1.workstation.internal`)"
entrypoints:
- websecure
service: fs1
tls: {}
services:
fs1:
loadBalancer:
servers:
- url: "http://127.0.0.1:3923" # Copyparty port example