1
0
Fork 0

ntfy: Allow notification attachments

*ntfy* allows notifications to include arbitrary file attachments.  For
images, it will even show them in the notification.  In order to support
this, the server must be configured with a writable filesystem location
to cache the files.
dch-webhooks-secrets
Dustin 2023-01-13 09:41:10 -06:00
parent b13479a297
commit ce0440a33c
1 changed files with 18 additions and 0 deletions

View File

@ -19,6 +19,8 @@ data:
base-url: https://ntfy.pyrocufflink.net base-url: https://ntfy.pyrocufflink.net
behind-proxy: true behind-proxy: true
listen-http: '[::]:2586' listen-http: '[::]:2586'
attachment-cache-dir: /var/cache/ntfy/attachments
attachment-file-size-limit: 100M
--- ---
apiVersion: v1 apiVersion: v1
@ -89,10 +91,24 @@ spec:
- name: config - name: config
mountPath: /etc/ntfy mountPath: /etc/ntfy
readOnly: true readOnly: true
- name: cache
mountPath: /var/cache/ntfy/attachments
subPath: attachments
securityContext:
fsGroup: 1000
volumes: volumes:
- name: config - name: config
configMap: configMap:
name: ntfy name: ntfy
- name: cache
ephemeral:
volumeClaimTemplate:
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
--- ---
apiVersion: networking.k8s.io/v1 apiVersion: networking.k8s.io/v1
@ -105,6 +121,8 @@ metadata:
app.kubernetes.io/component: ntfy app.kubernetes.io/component: ntfy
app.kubernetes.io/instance: ntfy app.kubernetes.io/instance: ntfy
app.kubernetes.io/part-of: ntfy app.kubernetes.io/part-of: ntfy
annotations:
nginx.ingress.kubernetes.io/proxy-body-size: '0'
spec: spec:
ingressClassName: nginx ingressClassName: nginx
rules: rules: