From f642cb12daa26f0b1bb27c5f5783b5df3dd710df Mon Sep 17 00:00:00 2001 From: Josh Ashton Date: Wed, 12 Mar 2025 14:37:48 -0600 Subject: [PATCH] added ollama installation and configuring environment variables of open webui. --- scripts/install.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/scripts/install.sh b/scripts/install.sh index 1c09610..4a75405 100644 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -139,7 +139,14 @@ init_ollama() { python -m venv open-webui-env; source open-webui-env/bin/activate pip install open-webui; - open-webui serve --port $OLLAMA_PORT; + echo " + export OLLAMA_BASE_URL=http://localhost:11434; + export WEBUI_BASE_URL=ai.$DOMAIN; + export WEBUI_AUTH=False; + " >> $(pwd)/.bashrc; + open-webui serve --port $OLLAMA_PORT &; + + curl -fsSL https://ollama.com/install.sh | sh; } # This function initializes cloudflared. @@ -148,7 +155,7 @@ init_cloudflared() { cloudflared tunnel login; cloudflared tunnel create raspi; TUNNEL_ID=$(cloudflared tunnel list | awk '/raspi/ {print $1}'); - read "?What is your domain name? e.g., vintagecoding.net" DOMAIN; + read "?What is your domain name? e.g., vintagecoding.net" $DOMAIN; cd; echo "