chore(ntfy): Added basic auth to ntfy
Some checks failed
Validate K8s manifests / validate-manifests (push) Failing after 4s
Validate K8s manifests / scan-secrets (push) Has been cancelled

This commit is contained in:
Daniël Groothuis
2025-10-23 23:18:35 +02:00
parent 98c1b69853
commit 99d6d935c4
2 changed files with 23 additions and 20 deletions

View File

@@ -0,0 +1,8 @@
---
kind: Middleware
apiVersion: traefik.containo.us/v1alpha1
metadata:
name: basic-auth
spec:
basicAuth:
secret: basic-auth

View File

@@ -1,24 +1,19 @@
--- ---
apiVersion: networking.k8s.io/v1 apiVersion: traefik.containo.us/v1alpha1
kind: Ingress kind: IngressRoute
metadata: metadata:
annotations: name: ntfy-ingress
cert-manager.io/cluster-issuer: letsencrypt
labels:
name: ntfy
spec: spec:
rules: entryPoints:
- host: notifications.dgse.cloud - websecure
http: routes:
paths: - match: Host(`notifications.dgse.cloud`)
- backend: kind: Rule
service: middlewares:
name: ntfy - name: basic-auth
port: services:
number: 80 - name: ntfy
path: / port: 80
pathType: Prefix
tls: tls:
- hosts:
- notifications.dgse.cloud
secretName: letsencrypt secretName: letsencrypt