diff options
| author | toufic ar <contact@toufy.me> | 2026-07-09 00:53:31 +0300 |
|---|---|---|
| committer | toufic ar <contact@toufy.me> | 2026-07-09 00:53:31 +0300 |
| commit | ba817db0f81426d500d793af17cf1622cf67298e (patch) | |
| tree | 056147fbcee7f5ad627bc6445e14360b3089ec9f | |
| parent | 9112c28fce631904959c6467321ddeddc03fb854 (diff) | |
| download | servers-ba817db0f81426d500d793af17cf1622cf67298e.tar.gz servers-ba817db0f81426d500d793af17cf1622cf67298e.zip | |
add ntfy instance
| -rw-r--r-- | adonis/default.nix | 1 | ||||
| -rw-r--r-- | adonis/ntfy/default.nix | 20 |
2 files changed, 21 insertions, 0 deletions
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}"; + }; +} |
