forked from mirrors_public/oddlama_nix-config
feat(monitoring): remove location, add nginx upstream monitoring option
This commit is contained in:
parent
2024c3bfd5
commit
18b2002c27
26 changed files with 352 additions and 218 deletions
|
@ -51,10 +51,10 @@ in {
|
|||
};
|
||||
|
||||
globals.services.open-webui.domain = openWebuiDomain;
|
||||
globals.monitoring.http.ollama-webui = {
|
||||
url = "https://${openWebuiDomain}";
|
||||
location = "home";
|
||||
network = "internet";
|
||||
globals.monitoring.http.ollama = {
|
||||
url = config.services.open-webui.environment.OLLAMA_BASE_URL;
|
||||
expectedBodyRegex = "Ollama is running";
|
||||
network = "local-${config.node.name}";
|
||||
};
|
||||
|
||||
nodes.sentinel = {
|
||||
|
@ -65,6 +65,10 @@ in {
|
|||
zone open-webui 64k;
|
||||
keepalive 2;
|
||||
'';
|
||||
monitoring = {
|
||||
enable = true;
|
||||
expectedBodyRegex = "Open WebUI";
|
||||
};
|
||||
};
|
||||
virtualHosts.${openWebuiDomain} = {
|
||||
forceSSL = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue