fixes
This commit is contained in:
parent
35f93c663f
commit
504be92cf4
5
.icons/openwebui.svg
Normal file
5
.icons/openwebui.svg
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<svg viewBox="0 0 500 500" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<circle cx="250" cy="250" r="250" fill="#fff"/>
|
||||||
|
<path d="m335 150h40v200h-40zm-130 0a100 100 0 1 0 0 200 100 100 0 1 0 0-200zm0 40a60 60 0 1 1 0 120 60 60 0 1 1 0-120z"/>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 293 B |
@ -1,8 +1,8 @@
|
|||||||
---
|
---
|
||||||
display_name: Open WebUI
|
display_name: Open WebUI
|
||||||
description: A self-hosted AI chat interface supporting various LLM providers
|
description: A self-hosted AI chat interface supporting various LLM providers
|
||||||
icon: ../../../../.icons/openai.svg
|
icon: ../../../../.icons/openwebui.svg
|
||||||
verified: false
|
verified: true
|
||||||
tags: [ai, llm, chat, web-ui, python]
|
tags: [ai, llm, chat, web-ui, python]
|
||||||
---
|
---
|
||||||
|
|
||||||
@ -14,10 +14,10 @@ This module installs and runs Open WebUI using Python and pip within your Coder
|
|||||||
|
|
||||||
## Prerequisites
|
## Prerequisites
|
||||||
|
|
||||||
- **Python 3.11 or higher** (automatically installed from deadsnakes PPA if not present)
|
- **Python 3.11 or higher** (automatically installed from [deadsnakes PPA](https://launchpad.net/~deadsnakes/+archive/ubuntu/ppa) if not present)
|
||||||
- `pip` package manager
|
- `pip` package manager
|
||||||
- `sudo` access (for automatic Python installation if needed)
|
- `sudo` access (for automatic Python installation if needed)
|
||||||
- Port 8080 (default) or your custom port must be available
|
- Port 7800 (default) or your custom port must be available
|
||||||
|
|
||||||
**Note:** If Python 3.11+ is not found, the module will automatically:
|
**Note:** If Python 3.11+ is not found, the module will automatically:
|
||||||
1. Add the deadsnakes PPA repository
|
1. Add the deadsnakes PPA repository
|
||||||
@ -34,76 +34,3 @@ module "open-webui" {
|
|||||||
agent_id = coder_agent.main.id
|
agent_id = coder_agent.main.id
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
## Examples
|
|
||||||
|
|
||||||
### Custom Port
|
|
||||||
|
|
||||||
Run Open WebUI on a custom port:
|
|
||||||
|
|
||||||
```tf
|
|
||||||
module "open-webui" {
|
|
||||||
count = data.coder_workspace.me.start_count
|
|
||||||
source = "registry.coder.com/coder-labs/open-webui/coder"
|
|
||||||
version = "1.0.0"
|
|
||||||
agent_id = coder_agent.main.id
|
|
||||||
port = 3000
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
### Public Sharing
|
|
||||||
|
|
||||||
Make Open WebUI accessible to authenticated Coder users:
|
|
||||||
|
|
||||||
```tf
|
|
||||||
module "open-webui" {
|
|
||||||
count = data.coder_workspace.me.start_count
|
|
||||||
source = "registry.coder.com/coder-labs/open-webui/coder"
|
|
||||||
version = "1.0.0"
|
|
||||||
agent_id = coder_agent.main.id
|
|
||||||
share = "authenticated"
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
### Custom Log Path and Grouping
|
|
||||||
|
|
||||||
```tf
|
|
||||||
module "open-webui" {
|
|
||||||
count = data.coder_workspace.me.start_count
|
|
||||||
source = "registry.coder.com/coder-labs/open-webui/coder"
|
|
||||||
version = "1.0.0"
|
|
||||||
agent_id = coder_agent.main.id
|
|
||||||
log_path = "/var/log/open-webui.log"
|
|
||||||
group = "AI Tools"
|
|
||||||
order = 1
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
## Features
|
|
||||||
|
|
||||||
- 🐍 Pure Python installation (no Docker required)
|
|
||||||
- 🔄 Automatic Python 3.11+ installation from deadsnakes PPA
|
|
||||||
- 💾 Data stored in `~/.open-webui` directory
|
|
||||||
- 🚀 Runs in background as a Python process
|
|
||||||
- 📝 Configurable logging
|
|
||||||
- 🌐 Subdomain support for clean URLs
|
|
||||||
- 🔧 Compatible with various LLM providers (OpenAI, Ollama, etc.)
|
|
||||||
|
|
||||||
## Data Persistence
|
|
||||||
|
|
||||||
Open WebUI data is stored in `~/.open-webui` directory in your workspace, which includes:
|
|
||||||
- User accounts
|
|
||||||
- Chat history
|
|
||||||
- Settings and configurations
|
|
||||||
- Model configurations
|
|
||||||
|
|
||||||
## Installation Process
|
|
||||||
|
|
||||||
The module automatically handles the installation:
|
|
||||||
|
|
||||||
1. **Check Python Version**: Looks for Python 3.11+ (checks python3.13, python3.12, python3.11, python3, python)
|
|
||||||
2. **Install Python if Needed**: If not found, installs Python 3.11 from deadsnakes PPA
|
|
||||||
3. **Install pip**: Ensures pip is available
|
|
||||||
4. **Install Open WebUI**: Installs open-webui package via pip
|
|
||||||
5. **Start Server**: Launches Open WebUI on the specified port
|
|
||||||
|
|
||||||
|
|||||||
@ -24,7 +24,7 @@ variable "log_path" {
|
|||||||
variable "port" {
|
variable "port" {
|
||||||
type = number
|
type = number
|
||||||
description = "The port to run Open WebUI on."
|
description = "The port to run Open WebUI on."
|
||||||
default = 8080
|
default = 7800
|
||||||
}
|
}
|
||||||
|
|
||||||
variable "share" {
|
variable "share" {
|
||||||
|
|||||||
@ -1,11 +1,5 @@
|
|||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
# Convert templated variables to shell variables
|
|
||||||
# shellcheck disable=SC2269
|
|
||||||
LOG_PATH=${LOG_PATH}
|
|
||||||
# shellcheck disable=SC2269
|
|
||||||
PORT=${PORT}
|
|
||||||
|
|
||||||
# shellcheck disable=SC2059
|
# shellcheck disable=SC2059
|
||||||
printf '\033[0;1mInstalling Open WebUI...\n\n'
|
printf '\033[0;1mInstalling Open WebUI...\n\n'
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user