From 0b7bf6205fa36e48c597bce55a65820d81cbeaec Mon Sep 17 00:00:00 2001 From: stuebinm Date: Mon, 4 Mar 2024 18:55:18 +0100 Subject: init mollysocket package, module, and deploy it on flora with thanks to networkException, who wrote the initial nix package. --- flora/services/ntfy.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'flora/services/ntfy.nix') diff --git a/flora/services/ntfy.nix b/flora/services/ntfy.nix index 45dcb3c..e00971f 100644 --- a/flora/services/ntfy.nix +++ b/flora/services/ntfy.nix @@ -21,6 +21,18 @@ }; }; + services.mollysocket = { + enable = true; + settings = { + allowed_endpoints = [ "https://ping.stuebinm.eu" ]; + port = 8020; + host = "::"; + }; + environmentFile = "/run/secrets/mollysocket/config.toml"; + }; + + sops.secrets."mollysocket/config.toml" = {}; + services.nginx.virtualHosts."ping.stuebinm.eu" = { enableACME = true; forceSSL = true; -- cgit v1.2.3