From de5fcb97226c95171a54348e3a67e0b07afe7b7e Mon Sep 17 00:00:00 2001 From: Joey Hafner Date: Sun, 19 May 2024 14:36:08 -0700 Subject: [PATCH] #127 Add Traefik route for ollama and open-webui --- fighter/config/traefik/config/ollama.yaml | 29 +++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 fighter/config/traefik/config/ollama.yaml diff --git a/fighter/config/traefik/config/ollama.yaml b/fighter/config/traefik/config/ollama.yaml new file mode 100644 index 0000000..840206d --- /dev/null +++ b/fighter/config/traefik/config/ollama.yaml @@ -0,0 +1,29 @@ +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