diff options
author | Azat Bahawi <azat@bahawi.net> | 2023-07-03 11:27:19 +0300 |
---|---|---|
committer | Azat Bahawi <azat@bahawi.net> | 2023-07-03 11:27:19 +0300 |
commit | c80598d4e4ffea73647b2ea8440a6080596968fe (patch) | |
tree | a6ca4bb82ec20df18022988fa359126fc877d5da /modules/nixos/ntfy.nix | |
parent | 2023-06-21 (diff) |
2023-07-03
Diffstat (limited to 'modules/nixos/ntfy.nix')
-rw-r--r-- | modules/nixos/ntfy.nix | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/modules/nixos/ntfy.nix b/modules/nixos/ntfy.nix index edbe7e5..1682b7e 100644 --- a/modules/nixos/ntfy.nix +++ b/modules/nixos/ntfy.nix @@ -64,20 +64,11 @@ in { settings = { listen-http = "127.0.0.1:${toString cfg.port}"; base-url = "https://${cfg.domain}"; - cache-file = "/var/cache/ntfy/cache.db"; behind-proxy = true; - attachment-cache-dir = "/var/cache/ntfy/attachments"; - auth-file = "/var/lib/ntfy/user.db"; enable-metrics = cfg.prometheus.enable; metrics-listen-http = with cfg.prometheus; optionalString cfg.prometheus.enable "${address}:${toString port}"; }; }; - - systemd.tmpfiles.rules = with config.services.ntfy-sh; [ - "d /var/lib/ntfy 0700 ${user} ${group} - -" - "d /var/cache/ntfy 0700 ${user} ${group} - -" - "d /var/cache/ntfy/attachments 0700 ${user} ${group} - -" - ]; }; } |