From b30f12fd45b7fc1bb2b57e86ae50ce7b50a3eb57 Mon Sep 17 00:00:00 2001 From: Daniel Kempkens Date: Fri, 21 Jul 2023 13:59:14 +0200 Subject: [PATCH] ntfy: Enable WebPush --- secret/hosts/tanker.nix | Bin 884 -> 1089 bytes system/nixos/ntfy-sh.nix | 5 ++++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/secret/hosts/tanker.nix b/secret/hosts/tanker.nix index c1ef95860434f943d68bb80fcb7993fdb8082993..709bb7ea94028c13c4acb0d080acab3ffe21566d 100644 GIT binary patch literal 1089 zcmV-H1it$KM@dveQdv+`0H|>v(CviZpr}R^D7so{wpUoMcXljF(O()(u%%q{`($@b z*!Yv#Qr8(Sm5xd7iK$fCJmfeabLrA_-s2Wr&%;)eCmu!pfYOO^o497UK_|iv!&C;_ zVReEIWq6@@h0?PLB6oP&t^9yvj~Vo}?`;Z(sQk(dbNtB(0*~9Gl1f6^EkGmpgOeQ% z@r^S~#okgVlsS2ZH`FSh+)M;p2!h*`SYkLkQ$hOoz`UA_3%oCsTFb*J5k@T`x9TtFOk!nAoTciblt@^;b@68tNe zmb3S6`!64=nP(Y?v69<%u{*^F53e`?B776wjkkh_RQNt^4hsW8Gw}ctd#p}#L?C?Q zqgq9|=k>hkCC91`ha(`|aQV{!#0KlJI1ApXBdQ1Ja}wpPcZ5VE*ec}#)!vsV*Ina3 z>KDCGfqs?;g$S02F<)slSf#-{Ejx8v*daA2kO)4knNoM19{heapd7T{OS7aq#9ip` z_|1e11;ZA$OAF;GTQ2B%G8E(tFV#rIk6NyQvwKMbk>t}4;*98H1Kq%?i08q6J2390 z^F9uiU_Cl)#~3tjxBiMR z2ijqj#~qG*VkQM*qQC=8(5Izdj1wkBC~c3~%~j>X@J@$wDax#6j=pAhu#jbV5+|NG zr40e6JoZN4VbBxR7@5?eV1JXDB@oCJmq3HxAC6UDCEZe>^`ooKYkT{x@b;`f;8$~| z*4qPz&%Xcvd~&!VPQb{%BL~T$|CL-#MrsL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ixos/ntfy-sh.nix +++ b/system/nixos/ntfy-sh.nix @@ -5,7 +5,7 @@ enable = true; settings = { - base-url = secret.ntfy.baseUrl; + base-url = "https://ntfy.kempkens.io"; listen-http = "127.0.0.1:8004"; behind-proxy = true; @@ -17,6 +17,9 @@ upstream-base-url = "https://ntfy.sh"; keepalive-interval = "45s"; + + inherit (secret.ntfy) web-push-public-key web-push-private-key web-push-email-address; + web-push-file = "/var/lib/ntfy-sh/webpush.db"; }; };