mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 04:19:19 -08:00
Some checks failed
nodes / nodes check (push) Has been cancelled
nodes / nodes-home-home-base (push) Has been cancelled
nodes / nodes-home-home-graphical (push) Has been cancelled
nodes / nodes-home-home-neovim (push) Has been cancelled
nodes / nodes-home-home-shell (push) Has been cancelled
nodes / nodes-nixos-mai (push) Has been cancelled
nodes / nodes-nixos-mei (push) Has been cancelled
30 lines
671 B
Nix
30 lines
671 B
Nix
{config, ...}: let
|
|
cfg = config.services.ntfy-sh;
|
|
domain = "ntfy.kittywit.ch";
|
|
in {
|
|
sops.secrets.ntfy-env = {
|
|
format = "yaml";
|
|
sopsFile = ./ntfy.yaml;
|
|
};
|
|
services.ntfy-sh = {
|
|
enable = true;
|
|
environmentFile = config.sops.secrets.ntfy-env.path;
|
|
settings = {
|
|
base-url = "https://${domain}";
|
|
auth-default-access = "deny-all";
|
|
};
|
|
};
|
|
services.nginx.virtualHosts.${domain} = {
|
|
enableACME = true;
|
|
forceSSL = true;
|
|
extraConfig = ''
|
|
client_max_body_size 512M;
|
|
'';
|
|
locations = {
|
|
"/" = {
|
|
proxyPass = "http://${cfg.settings.listen-http}";
|
|
proxyWebsockets = true;
|
|
};
|
|
};
|
|
};
|
|
}
|