temp
This commit is contained in:
parent
93b7145e70
commit
ac6a0f59c4
25
hosts/modules/server/ntfy-sh.nix
Normal file
25
hosts/modules/server/ntfy-sh.nix
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
# https://mynixos.com/nixpkgs/options/services.ntfy-sh
|
||||||
|
let
|
||||||
|
hostname = "ntfy.anotherhadi.com";
|
||||||
|
url = "https://"+hostname;
|
||||||
|
port = 8082;
|
||||||
|
in{
|
||||||
|
services.ntfy-sh = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
base-url = url;
|
||||||
|
listen-http = "${port}";
|
||||||
|
# auth-file
|
||||||
|
auth-default-access = "deny-all";
|
||||||
|
behind-proxy = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
services.nginx.virtualHosts.${hostname} = {
|
||||||
|
enableACME = true;
|
||||||
|
forceSSL = true;
|
||||||
|
locations."/" = {
|
||||||
|
proxyPass = "http://127.0.0.1:${port}";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
networking.firewall.allowedTCPPorts = [ port ];
|
||||||
|
}
|
6
hosts/modules/server/unifi.nix
Normal file
6
hosts/modules/server/unifi.nix
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
services.unifi = {
|
||||||
|
enable = true;
|
||||||
|
openFirewall = true;
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user