chore: compact ingress rules with regex
This commit is contained in:
@@ -7,7 +7,7 @@ spec:
|
||||
entryPoints:
|
||||
- websecure
|
||||
routes:
|
||||
- match: Host(`s.forust.xyz`) || Host(`searxng.forust.xyz`)
|
||||
- match: HostRegexp(`^(s|searxng)\.forust\.xyz$`)
|
||||
kind: Rule
|
||||
services:
|
||||
- name: searxng-service
|
||||
@@ -24,24 +24,9 @@ spec:
|
||||
entryPoints:
|
||||
- websecure
|
||||
routes:
|
||||
- match: Host(`s.workstation.internal`) || Host(`searxng.workstation.internal`)
|
||||
- match: HostRegexp(`^(s|searxng)\.(workstation|gigaforust)\.internal$`)
|
||||
kind: Rule
|
||||
services:
|
||||
- name: searxng-service
|
||||
port: 8080
|
||||
|
||||
---
|
||||
apiVersion: traefik.io/v1alpha1
|
||||
kind: IngressRoute
|
||||
metadata:
|
||||
name: searxng-dev
|
||||
namespace: searxng
|
||||
spec:
|
||||
entryPoints:
|
||||
- websecure
|
||||
routes:
|
||||
- match: Host(`searxng.gigaforust.internal`)
|
||||
kind: Rule
|
||||
services:
|
||||
- name: searxng-service
|
||||
port: 8080
|
||||
|
||||
Reference in New Issue
Block a user