Update greatyamada services
This commit is contained in:
parent
2fef3e01c6
commit
fa0b9b18cd
22 changed files with 290 additions and 191 deletions
20
hosts/greatyamada/services/ntfy.nix
Normal file
20
hosts/greatyamada/services/ntfy.nix
Normal file
|
@ -0,0 +1,20 @@
|
|||
{ ... }:
|
||||
let ports = import ./_port-definitions.nix;
|
||||
in {
|
||||
services = {
|
||||
ntfy-sh = {
|
||||
enable = true;
|
||||
settings = {
|
||||
base-url = "https://ntfy.rcia.dev";
|
||||
auth-file = "/etc/ntfy-users.db";
|
||||
auth-default-access = "deny-all";
|
||||
};
|
||||
};
|
||||
nginx.virtualHosts."ntfy.rcia.dev" = {
|
||||
locations."/" = {
|
||||
proxyPass = "http://127.0.0.1:${toString ports.ntfy-http}";
|
||||
recommendedProxySettings = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue