feat(mx): add ntfy-sh push notification service
Self-hosted at ntfy.hoyer.xyz with deny-all default access. After deploying, create a user with: ntfy user add --role=admin harald Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
616c57874c
commit
507fc67d60
2 changed files with 22 additions and 0 deletions
|
|
@ -14,6 +14,7 @@
|
||||||
./nextcloud.nix
|
./nextcloud.nix
|
||||||
./nextcloud-claude-bot
|
./nextcloud-claude-bot
|
||||||
./nginx.nix
|
./nginx.nix
|
||||||
|
./ntfy.nix
|
||||||
./postgresql.nix
|
./postgresql.nix
|
||||||
./rspamd.nix
|
./rspamd.nix
|
||||||
./rustdesk.nix
|
./rustdesk.nix
|
||||||
|
|
|
||||||
21
systems/x86_64-linux/mx/ntfy.nix
Normal file
21
systems/x86_64-linux/mx/ntfy.nix
Normal file
|
|
@ -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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue