summaryrefslogtreecommitdiff
path: root/flora
diff options
context:
space:
mode:
authorstuebinm2024-03-04 18:55:18 +0100
committerstuebinm2024-03-04 18:55:18 +0100
commit0b7bf6205fa36e48c597bce55a65820d81cbeaec (patch)
tree9c69d31848a86dd595292c7620b379fdb82d0e36 /flora
parent303aacafdb293aaed7cfdb0e434f10d77bfb203a (diff)
init mollysocket package, module, and deploy it on flora
with thanks to networkException, who wrote the initial nix package.
Diffstat (limited to 'flora')
-rw-r--r--flora/configuration.nix2
-rw-r--r--flora/services/ntfy.nix12
2 files changed, 14 insertions, 0 deletions
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;