all repos — nixfiles @ edd44b8f2002d7618d8ac38e98dee361fe912b73

System and user configuration, managed by nix and home-manager

linde: set up ntfy.sh

Alan Pearce
commit

edd44b8f2002d7618d8ac38e98dee361fe912b73

parent

55d0842ec093a68d7b91b15468d3f1938a5cda83

1 file changed, 19 insertions(+), 0 deletions(-)

changed files
M system/hosts/linde.nixsystem/hosts/linde.nix
@@ -55,6 +55,7 @@ cifs-jellyfin.file = ../../secrets/cifs-jellyfin.age;
cifs-paperless.file = ../../secrets/cifs-paperless.age; cifs-transmission.file = ../../secrets/cifs-transmission.age; forgejo-actions-runner.file = ../../secrets/forgejo-actions-runner.age; + ntfy.file = ../../secrets/ntfy.age; rauthy.file = ../../secrets/rauthy.age; };
@@ -782,6 +783,11 @@ extraConfig = ''
reverse_proxy localhost:8096 ''; }; + "ntfy.${domain}" = { + extraConfig = '' + reverse_proxy ${config.services.ntfy-sh.settings.listen-http} + ''; + }; }; }; systemd.services.caddy.serviceConfig = {
@@ -1267,6 +1273,19 @@ nodejs
wget ]; }; + }; + + services.ntfy-sh = { + enable = true; + settings = { + base-url = "https://ntfy.alin.ovh"; + behind-proxy = true; + upstream-base-url = "https://ntfy.sh"; + auth-default-access = "deny"; + enable-login = true; + require-login = true; + }; + environmentFile = config.age.secrets.ntfy.path; }; virtualisation.containers = {