wynne: enable ntfy.sh
This commit is contained in:
parent
31eb4ce2d5
commit
583370a024
2 changed files with 40 additions and 0 deletions
|
@ -2,6 +2,7 @@ _: {
|
||||||
imports = [
|
imports = [
|
||||||
./dendrite
|
./dendrite
|
||||||
./acomputer.lol.nix
|
./acomputer.lol.nix
|
||||||
|
./ntfy.nix
|
||||||
./postgresql.nix
|
./postgresql.nix
|
||||||
../../../shared/prometheus-exporters.nix
|
../../../shared/prometheus-exporters.nix
|
||||||
../../../shared/promtail.nix
|
../../../shared/promtail.nix
|
||||||
|
|
39
hosts/wynne/services/apps/ntfy.nix
Normal file
39
hosts/wynne/services/apps/ntfy.nix
Normal file
|
@ -0,0 +1,39 @@
|
||||||
|
_:
|
||||||
|
let
|
||||||
|
inherit (import ../../../shared/caddy-helpers.nix) logFormat;
|
||||||
|
domainName = "ntfy.acomputer.lol";
|
||||||
|
in
|
||||||
|
{
|
||||||
|
services = {
|
||||||
|
caddy.virtualHosts."${domainName}" = {
|
||||||
|
logFormat = logFormat domainName;
|
||||||
|
extraConfig = ''
|
||||||
|
reverse_proxy 127.0.0.1:8080
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
frp.settings.proxies = [
|
||||||
|
{
|
||||||
|
name = "http.${domainName}";
|
||||||
|
type = "http";
|
||||||
|
customDomains = [ "${domainName}" ];
|
||||||
|
localPort = 80;
|
||||||
|
transport.useCompression = true;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "https.${domainName}";
|
||||||
|
type = "https";
|
||||||
|
customDomains = [ "${domainName}" ];
|
||||||
|
localPort = 443;
|
||||||
|
transport.useCompression = true;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
ntfy-sh = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
base-url = "https://${domainName}";
|
||||||
|
listen-http = "127.0.0.1:8080";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue