Compare commits

...

2 commits
trunk ... ntfy

Author SHA1 Message Date
6eb6fbd51e c
Some checks failed
/ Check formatting (push) Has been cancelled
2025-01-12 10:17:27 +02:00
a63e4987c3 initial ntfy stuff - UNTESTED 2025-01-12 10:16:13 +02:00
2 changed files with 33 additions and 0 deletions

View file

@ -54,5 +54,17 @@ https://grf.collective-conciousness.monster {
encode zstd gzip encode zstd gzip
reverse_proxy 10.24.1.4:6700 reverse_proxy 10.24.1.4:6700
}
ntfy.collective-conciousness.monster {
encode zstd gzip
reverse_proxy 10.24.1.4:32984
@httpget {
protocol http
method GET
path_regexp ^/([-_a-z0-9]{0,64}$|docs/|static/)
}
redir @httpget https://{host}{uri}
} }

View file

@ -0,0 +1,21 @@
{
glucose.modules = [
{
services.ntfy-sh = {
enable = true;
settings = {
base-url = "https://ntfy.collective-conciousness.monster";
behind-proxy = true;
enable-singup = false;
enable-login = true;
enable-reservations = true;
listen-http = ":32984";
attachment-cache-dir = "/var/services/ntfy/attachments";
cache-file = "/var/services/ntfy/cache.db";
auth-default-access = "write-only";
auth-file = "/var/services/ntfy/auth.db";
};
};
}
];
}