-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.ts
54 lines (50 loc) · 1.6 KB
/
index.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
import { AIModule } from './components/ai';
import { IoTModule } from './components/iot';
import { MonitoringModule } from './components/monitoring';
import { SystemModule } from './components/system';
const systemModule = new SystemModule('system');
export const system = {
longhornUrl: systemModule.longhorn?.endpointUrl,
tailscaleAgentKey: systemModule.tailscaleAgentKey,
tailscaleServerKey: systemModule.tailscaleServerKey,
tailscaleDomain: systemModule.domainName,
};
const monitoringModule = new MonitoringModule(
'monitoring',
{
domainName: systemModule.domainName,
},
{ dependsOn: systemModule },
);
export const monitoring = {
beszelUrl: monitoringModule.beszel?.endpointUrl,
grafanaUrl: monitoringModule.prometheus?.grafanaEndpointUrl,
};
const iotModule = new IoTModule(
'iot',
{
domainName: systemModule.domainName,
clusterCidr: systemModule.clusterCidr,
serviceCidr: systemModule.serviceCidr,
},
{ dependsOn: systemModule },
);
export const iot = {
homeAssistantUrl: iotModule.homeAssistant?.endpointUrl,
};
const aiModule = new AIModule(
'ai',
{
domainName: systemModule.domainName,
},
{ dependsOn: systemModule },
);
export const ai = {
ollamaUrl: aiModule.ollama?.endpointUrl,
openWebUIUrl: aiModule.openWebUI?.endpointUrl,
kubeAIClusterUrl: aiModule.kubeAI?.serviceUrl,
automatic1111Url: aiModule.automatic1111?.endpointUrl,
automatic1111ClusterUrl: aiModule.automatic1111?.serviceUrl,
sdnextUrl: aiModule.sdnext?.endpointUrl,
sdnextClusterUrl: aiModule.sdnext?.serviceUrl,
};