diff --git a/systems/x86_64-linux/mx/default.nix b/systems/x86_64-linux/mx/default.nix index 493ee7a..e1d348a 100644 --- a/systems/x86_64-linux/mx/default.nix +++ b/systems/x86_64-linux/mx/default.nix @@ -14,6 +14,7 @@ ./nextcloud.nix ./nextcloud-claude-bot ./nginx.nix + ./ntfy.nix ./postgresql.nix ./rspamd.nix ./rustdesk.nix diff --git a/systems/x86_64-linux/mx/ntfy.nix b/systems/x86_64-linux/mx/ntfy.nix new file mode 100644 index 0000000..7319c98 --- /dev/null +++ b/systems/x86_64-linux/mx/ntfy.nix @@ -0,0 +1,21 @@ +{ ... }: +{ + services.ntfy-sh = { + enable = true; + settings = { + base-url = "https://ntfy.hoyer.xyz"; + behind-proxy = true; + auth-default-access = "deny-all"; + }; + }; + + services.nginx.virtualHosts."ntfy.hoyer.xyz" = { + useACMEHost = "hoyer.xyz"; + enableACME = false; + forceSSL = true; + locations."/" = { + proxyPass = "http://127.0.0.1:2586"; + proxyWebsockets = true; + }; + }; +}