refactor(pbx): access updates

This commit is contained in:
arcnmx 2024-03-21 16:51:35 -07:00
parent a7f7e38532
commit f1639f78c5
2 changed files with 51 additions and 91 deletions

View file

@ -142,15 +142,12 @@ in {
])
];
};
${access.freepbx.domain} = {
pbx = {
inherit (nginx) group;
domain = virtualHosts.freepbx.serverName;
extraDomainNames = mkMerge [
[
access.freepbx.localDomain
]
(mkIf tailscale.enable [
access.freepbx.tailDomain
])
virtualHosts.freepbx.serverAliases
virtualHosts.freepbx'local.allServerNames
];
};
prox = {
@ -206,9 +203,6 @@ in {
host = "idp.local.${config.networking.domain}";
kerberos.ports.kpasswd = 464;
};
access.freepbx = {
useACMEHost = access.freepbx.domain;
};
access.kitchencam = {
streamPort = 41081;
};
@ -244,8 +238,8 @@ in {
ssl.cert.enable = true;
locations."/".proxyPass = "http://${tei.lib.access.hostnameForNetwork.tail}";
};
${access.freepbx.domain} = {
local.enable = true;
freepbx = {
ssl.cert.enable = true;
};
prox = {
proxied.enable = "cloudflared";