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/configuration.nix | 2 ++ flora/services/ntfy.nix | 12 ++++++++++++ 2 files changed, 14 insertions(+) (limited to 'flora') diff --git a/flora/configuration.nix b/flora/configuration.nix index 40cd3a5..d124f99 100644 --- a/flora/configuration.nix +++ b/flora/configuration.nix @@ -13,6 +13,8 @@ ./services/ntfy.nix ./services/murmur.nix ./services/monit.nix + + ../modules/mollysocket.nix ]; # Use the GRUB 2 boot loader. 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