mirror of
https://github.com/tuxdotrs/tawm.git
synced 2025-07-06 13:06:35 +05:30
add ntfy-sh
This commit is contained in:
28
modules/nixos/ntfy-sh.nix
Normal file
28
modules/nixos/ntfy-sh.nix
Normal file
@ -0,0 +1,28 @@
|
||||
{lib, ...}: {
|
||||
services = {
|
||||
ntfy-sh = {
|
||||
enable = true;
|
||||
settings = {
|
||||
listen-http = ":7070";
|
||||
base-url = "https://ntfy.tux.rs";
|
||||
behind-proxy = true;
|
||||
};
|
||||
};
|
||||
|
||||
nginx = {
|
||||
enable = lib.mkForce true;
|
||||
virtualHosts = {
|
||||
"ntfy.tux.rs" = {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
locations = {
|
||||
"/" = {
|
||||
proxyPass = "http://localhost:7070";
|
||||
proxyWebsockets = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user