Add ntfy push notification server on ponyo
This commit is contained in:
@@ -16,5 +16,6 @@
|
|||||||
./librechat.nix
|
./librechat.nix
|
||||||
./actualbudget.nix
|
./actualbudget.nix
|
||||||
./unifi.nix
|
./unifi.nix
|
||||||
|
./ntfy.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
38
common/server/ntfy.nix
Normal file
38
common/server/ntfy.nix
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
{ lib, config, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
cfg = config.services.ntfy-sh;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.services.ntfy-sh = {
|
||||||
|
hostname = lib.mkOption {
|
||||||
|
type = lib.types.str;
|
||||||
|
example = "ntfy.example.com";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
services.ntfy-sh.settings = {
|
||||||
|
base-url = "https://${cfg.hostname}";
|
||||||
|
listen-http = "127.0.0.1:2586";
|
||||||
|
auth-default-access = "deny-all";
|
||||||
|
behind-proxy = true;
|
||||||
|
enable-login = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
# backups
|
||||||
|
backup.group."ntfy".paths = [
|
||||||
|
"/var/lib/ntfy-sh"
|
||||||
|
];
|
||||||
|
|
||||||
|
services.nginx.enable = true;
|
||||||
|
services.nginx.virtualHosts.${cfg.hostname} = {
|
||||||
|
enableACME = true;
|
||||||
|
forceSSL = true;
|
||||||
|
locations."/" = {
|
||||||
|
proxyPass = "http://127.0.0.1:2586";
|
||||||
|
proxyWebsockets = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -108,4 +108,8 @@
|
|||||||
# librechat
|
# librechat
|
||||||
services.librechat-container.enable = true;
|
services.librechat-container.enable = true;
|
||||||
services.librechat-container.host = "chat.neet.dev";
|
services.librechat-container.host = "chat.neet.dev";
|
||||||
|
|
||||||
|
# push notifications
|
||||||
|
services.ntfy-sh.enable = true;
|
||||||
|
services.ntfy-sh.hostname = "ntfy.neet.dev";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user