diff --git a/modules/ntfy.nix b/modules/ntfy.nix index 17027c9..64171ef 100644 --- a/modules/ntfy.nix +++ b/modules/ntfy.nix @@ -32,41 +32,16 @@ env.TZ.value = "Europe/Amsterdam"; volumeMounts = [ - { - name = "cache"; - mountPath = "/var/cache/ntfy"; - } { name = "data"; mountPath = "/var/lib/ntfy"; } - { - name = "attachment-cache"; - mountPath = "/var/cache/ntfy-attachments"; - } ]; }; - volumes = { - data.hostPath = { - path = "/mnt/longhorn/persistent/volumes/ntfy"; - type = "Directory"; - }; - - cache.hostPath = { - path = "/tmp/ntfy-cache"; - type = "DirectoryOrCreate"; - }; - - attachment-cache.hostPath = { - path = "/tmp/ntfy-attachment-cache"; - type = "DirectoryOrCreate"; - }; - }; - - securityContext = { - fsGroup = 407; - fsGroupChangePolicy = "Always"; + volumes.data.hostPath = { + path = "/mnt/longhorn/persistent/volumes/ntfy"; + type = "Directory"; }; }; }; diff --git a/nixng-configurations/ntfy.nix b/nixng-configurations/ntfy.nix index a957c42..a934f4f 100644 --- a/nixng-configurations/ntfy.nix +++ b/nixng-configurations/ntfy.nix @@ -7,11 +7,9 @@ settings = { base-url = "https://ntfy.kun.is"; - cache-file = "/var/cache/ntfy/cache.db"; cache-duration = "14d"; auth-file = "/var/lib/ntfy/user.db"; auth-default-access = "deny-all"; - attachment-cache-dir = "/var/cache/ntfy-attachments"; enable-signup = false; enable-login = true; visitor-subscription-limit = 100;