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
kind: Ingress
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
annotations:
cert-manager.io/cluster-issuer: letsencrypt
labels:
name: ntfy
name: ntfy-ingress
spec:
rules:
- host: notifications.dgse.cloud
http:
paths:
- backend:
service:
name: ntfy
port:
number: 80
path: /
pathType: Prefix
entryPoints:
- websecure
routes:
- match: Host(`notifications.dgse.cloud`)
kind: Rule
middlewares:
- name: basic-auth
services:
- name: ntfy
port: 80
tls:
- hosts:
- notifications.dgse.cloud
secretName: letsencrypt