mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 04:19:19 -08:00
refactor(pbx): access updates
This commit is contained in:
parent
a7f7e38532
commit
f1639f78c5
2 changed files with 51 additions and 91 deletions
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue