ntfy: init

This commit is contained in:
wo2wz 2025-10-07 22:07:56 -04:00
parent 98235cf407
commit 273704b10f
2 changed files with 44 additions and 0 deletions

View file

@ -0,0 +1,43 @@
{ config, ... }:
{
services.caddy.virtualHosts."ntfy.taild5f7e6.ts.net".extraConfig =
assert config.services.caddy.enable;
''
import default-settings
bind tailscale/ntfy
reverse_proxy localhost:8006
'';
users = {
users.ntfy-sh = {
isSystemUser = true;
group = "ntfy-sh";
};
groups.ntfy-sh = {};
};
services.ntfy-sh = {
enable = true;
settings = {
base-url = "https://ntfy.taild5f7e6.ts.net";
listen-http = ":8006";
behind-proxy = true;
proxy-trusted-hosts = "127.0.0.1";
auth-default-access = "deny-all";
enable-login = true;
require-login = true;
auth-access = [
"wo2w:*:rw"
"*:*:none"
];
attachment-file-size-limit = "20G";
attachment-total-size-limit = "200G";
};
};
}