From ba817db0f81426d500d793af17cf1622cf67298e Mon Sep 17 00:00:00 2001 From: toufic ar Date: Thu, 9 Jul 2026 00:53:31 +0300 Subject: add ntfy instance --- adonis/default.nix | 1 + adonis/ntfy/default.nix | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 adonis/ntfy/default.nix (limited to 'adonis') diff --git a/adonis/default.nix b/adonis/default.nix index d8b5c8e..dcb1fab 100644 --- a/adonis/default.nix +++ b/adonis/default.nix @@ -3,6 +3,7 @@ ./network.nix ./aur ./captiveportal + ./ntfy ./tor ]; system.stateVersion = "25.11"; diff --git a/adonis/ntfy/default.nix b/adonis/ntfy/default.nix new file mode 100644 index 0000000..9f97e86 --- /dev/null +++ b/adonis/ntfy/default.nix @@ -0,0 +1,20 @@ +{config, ...}: let + ntfyDomain = "push.${config.customOps.domain.fqdn}"; + listen = "127.0.0.1:2586"; +in { + services.ntfy-sh = { + enable = true; + settings = { + base-url = "https://${ntfyDomain}"; + behind-proxy = true; + auth-access = ["*:up*:write-only"]; + listen-http = listen; + }; + }; + + services.nginx.virtualHosts.${ntfyDomain} = { + forceSSL = true; + enableACME = true; + locations."/".proxyPass = "http://${listen}"; + }; +} -- cgit v1.3.1