2023-02-18 19:54:15 +00:00
|
|
|
{ secret, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
services.ntfy-sh = {
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
settings = {
|
|
|
|
base-url = secret.ntfy.baseUrl;
|
2023-02-18 20:02:42 +00:00
|
|
|
listen-http = "127.0.0.1:8004";
|
2023-02-18 19:54:15 +00:00
|
|
|
behind-proxy = true;
|
|
|
|
|
|
|
|
auth-file = "/var/lib/ntfy-sh/user.db";
|
|
|
|
auth-default-access = "deny-all";
|
|
|
|
|
|
|
|
cache-file = "/var/lib/ntfy-sh/cache.db";
|
2023-02-18 19:57:42 +00:00
|
|
|
attachment-cache-dir = "/var/lib/ntfy-sh/cache-attachments";
|
2023-02-18 19:54:15 +00:00
|
|
|
|
2023-02-18 20:29:47 +00:00
|
|
|
upstream-base-url = "https://ntfy.sh";
|
2023-02-18 19:54:15 +00:00
|
|
|
keepalive-interval = "45s";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|