Files
homelab/prometheus-stack/k8s/ingress.yaml
T
forustandCopilot ed1ddaad5d feat(crowdsec): restore web traffic protection
Protect public Traefik routes with CrowdSec HTTP decisions and restore access logging for web traffic analysis.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-09-12 21:05:12 +02:00

38 lines
829 B
YAML

apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
name: grafana-prod
namespace: prometheus
spec:
entryPoints:
- websecure
routes:
- match: Host(`grafana.forust.xyz`)
kind: Rule
middlewares:
- name: crowdsec-bouncer
namespace: crowdsec
- name: "security-chain@file"
services:
- name: prometheus-stack-grafana
port: 80
tls:
certResolver: letsencrypt
domains:
- main: grafana.forust.xyz
---
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
name: grafana-local
namespace: prometheus
spec:
entryPoints:
- websecure
routes:
- match: Host(`grafana.workstation.internal`) || Host(`grafana.gigaforust.internal`)
kind: Rule
services:
- name: prometheus-stack-grafana
port: 80