mirror of
https://codeberg.org/muon/home.git
synced 2025-12-06 08:07:45 +00:00
Add ntfy
This commit is contained in:
parent
44542101e5
commit
e4fb3b6d87
4 changed files with 31 additions and 0 deletions
|
|
@ -41,6 +41,7 @@ in {
|
||||||
mods.server.git.enable = true;
|
mods.server.git.enable = true;
|
||||||
mods.server.cal.enable = true;
|
mods.server.cal.enable = true;
|
||||||
mods.server.chat.enable = true;
|
mods.server.chat.enable = true;
|
||||||
|
mods.server.ntfy.enable = true;
|
||||||
|
|
||||||
mods.server.dash.enable = true;
|
mods.server.dash.enable = true;
|
||||||
mods.server.nginx.ports.dash = 3009;
|
mods.server.nginx.ports.dash = 3009;
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,7 @@
|
||||||
cal = 3007;
|
cal = 3007;
|
||||||
chat = 3008;
|
chat = 3008;
|
||||||
# dash = 3009;
|
# dash = 3009;
|
||||||
|
ntfy = 3010;
|
||||||
|
|
||||||
search = 8081;
|
search = 8081;
|
||||||
videos = 8082;
|
videos = 8082;
|
||||||
|
|
|
||||||
|
|
@ -21,5 +21,6 @@
|
||||||
./chat.nix
|
./chat.nix
|
||||||
./dash.nix
|
./dash.nix
|
||||||
./nvr.nix
|
./nvr.nix
|
||||||
|
./ntfy.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
28
modules/nixos/server/ntfy.nix
Normal file
28
modules/nixos/server/ntfy.nix
Normal file
|
|
@ -0,0 +1,28 @@
|
||||||
|
{ pkgs, lib, config, ... }:
|
||||||
|
let
|
||||||
|
cfg = config.mods.server.ntfy;
|
||||||
|
port = config.mods.server.nginx.ports.ntfy;
|
||||||
|
in with lib; {
|
||||||
|
options.mods.server = {
|
||||||
|
ntfy = {
|
||||||
|
enable = mkEnableOption {
|
||||||
|
default = false;
|
||||||
|
description = "enables ntfy-sh server";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
services.ntfy-sh = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
listen-http = "0.0.0.0:${toString port}";
|
||||||
|
base-url = "https://ntfy.muon.host";
|
||||||
|
behind-proxy = true;
|
||||||
|
|
||||||
|
auth-default-access = "deny-all";
|
||||||
|
enable-login = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue