alpine: add ntfy
This commit is contained in:
parent
140a50310e
commit
c1d50bba47
3 changed files with 20 additions and 8 deletions
|
|
@ -71,6 +71,7 @@
|
|||
./nixos/services/mautrix/whatsapp.nix
|
||||
./nixos/services/mautrix/signal.nix
|
||||
./nixos/services/nextcloud.nix
|
||||
./nixos/services/ntfy.nix
|
||||
] [];
|
||||
|
||||
vm-sway =
|
||||
|
|
|
|||
|
|
@ -140,14 +140,6 @@ in {
|
|||
enableACME = true;
|
||||
root = "/srv/www/tristans.cloud";
|
||||
};
|
||||
"*.thebeanbakery.xyz" = {
|
||||
globalRedirect = "thebeanbakery.xyz";
|
||||
};
|
||||
"thebeanbakery.xyz" = {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
root = "/srv/www/thebeanbakery.xyz";
|
||||
};
|
||||
"auth.tristans.cloud" = {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
|
|
|
|||
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