chore(ntfy): Added basic auth to ntfy
This commit is contained in:
8
manifests/artemis/ntfy/basicauth.yaml
Normal file
8
manifests/artemis/ntfy/basicauth.yaml
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
---
|
||||||
|
kind: Middleware
|
||||||
|
apiVersion: traefik.containo.us/v1alpha1
|
||||||
|
metadata:
|
||||||
|
name: basic-auth
|
||||||
|
spec:
|
||||||
|
basicAuth:
|
||||||
|
secret: basic-auth
|
||||||
@@ -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:
|
secretName: letsencrypt
|
||||||
- notifications.dgse.cloud
|
|
||||||
secretName: letsencrypt
|
|
||||||
|
|||||||
Reference in New Issue
Block a user