alpine: add ntfy
This commit is contained in:
parent
140a50310e
commit
c1d50bba47
3 changed files with 20 additions and 8 deletions
19
nixos/services/ntfy.nix
Normal file
19
nixos/services/ntfy.nix
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
{ config, ... }:
|
||||
let
|
||||
domain = "up.${config.networking.domain}";
|
||||
port = 8080;
|
||||
in
|
||||
{
|
||||
services.ntfy-sh = {
|
||||
enable = true;
|
||||
settings = {
|
||||
base-url = "https://${domain}";
|
||||
listen-http = ":${toString port}";
|
||||
};
|
||||
};
|
||||
services.nginx.virtualHosts.${domain} = {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
locations."~".proxyPass = "http://localhost:${toString port}";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue