From 6ba11c0582aed7d22d7da61d8ccc1ea342c5ba5f Mon Sep 17 00:00:00 2001 From: Joey Hafner Date: Tue, 28 May 2024 11:42:15 -0700 Subject: [PATCH] Update ai traefik routiung --- fighter/config/traefik/config/ai.yaml | 54 +++++++++++++++++++---- fighter/config/traefik/config/ollama.yaml | 29 ------------ 2 files changed, 46 insertions(+), 37 deletions(-) delete mode 100644 fighter/config/traefik/config/ollama.yaml diff --git a/fighter/config/traefik/config/ai.yaml b/fighter/config/traefik/config/ai.yaml index acf1289..082db2c 100644 --- a/fighter/config/traefik/config/ai.yaml +++ b/fighter/config/traefik/config/ai.yaml @@ -1,11 +1,11 @@ http: routers: - api: - rule: "Host(`ollama-api.jafner.net`)" + ollama: + rule: "Host(`ollama.jafner.net`)" entryPoints: "websecure" middlewares: - "lan-only@file" - service: "ollama-api@file" + service: "ollama@file" tls: certResolver: "lets-encrypt" open-webui: @@ -21,6 +21,15 @@ http: entryPoints: "websecure" middlewares: - "lan-only@file" + service: "sillytavern@file" + tls: + certResolver: "lets-encrypt" + sdwebui: + rule: "Host(`sdwebui.jafner.net`)" + entryPoints: "websecure" + middlewares: + - "lan-only@file" + service: "sdwebui@file" tls: certResolver: "lets-encrypt" oobabooga: @@ -28,24 +37,53 @@ http: entryPoints: "websecure" middlewares: - "lan-only@file" + service: "oobabooga@file" + tls: + certResolver: "lets-encrypt" + oobabooga-api: + rule: "Host(`oobabooga-api.jafner.net`)" + entryPoints: "websecure" + middlewares: + - "lan-only@file" + service: "oobabooga-api@file" + tls: + certResolver: "lets-encrypt" + exui: + rule: "Host(`exui.jafner.net`)" + entryPoints: "websecure" + middlewares: + - "lan-only@file" + service: "exui@file" tls: certResolver: "lets-encrypt" services: - open-webui: - loadBalancer: - servers: - - url: "http://192.168.1.135:8080" - ollama-api: + ollama: loadBalancer: servers: - url: "http://192.168.1.135:11434" + open-webui: + loadBalancer: + servers: + - url: "http://192.168.1.135:3000" sillytavern: loadBalancer: servers: - url: "http://192.168.1.135:8000" + sdwebui: + loadBalancer: + servers: + - url: "http://192.168.1.135:7868" oobabooga: loadBalancer: servers: - url: "http://192.168.1.135:7860" + oobabooga-api: + loadBalancer: + servers: + - url: "http://192.168.1.135:5010" + exui: + loadBalancer: + servers: + - url: "http://192.168.1.135:5030" \ No newline at end of file diff --git a/fighter/config/traefik/config/ollama.yaml b/fighter/config/traefik/config/ollama.yaml deleted file mode 100644 index 840206d..0000000 --- a/fighter/config/traefik/config/ollama.yaml +++ /dev/null @@ -1,29 +0,0 @@ -http: - routers: - api: - rule: "Host(`api.ollama.jafner.net`)" - entryPoints: "websecure" - middlewares: - - "lan-only@file" - service: "api@file" - tls: - certResolver: "lets-encrypt" - open-webui: - rule: "Host(`ollama.jafner.net`)" - entryPoints: "websecure" - middlewares: - - "lan-only@file" - service: "open-webui@file" - tls: - certResolver: "lets-encrypt" - - services: - open-webui: - loadBalancer: - servers: - - url: "http://192.168.1.135:8080" - api: - loadBalancer: - servers: - - url: "http://192.168.1.135:11434" - \ No newline at end of file