Compare commits
2 commits
Author | SHA1 | Date | |
---|---|---|---|
6eb6fbd51e | |||
a63e4987c3 |
2 changed files with 33 additions and 0 deletions
|
@ -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}
|
||||||
}
|
}
|
21
services/social/ntfy.mod.nix
Normal file
21
services/social/ntfy.mod.nix
Normal 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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
Loading…
Reference in a new issue