File size: 1,327 Bytes
fbf3c28
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Title: Runbook — Open WebUI (vLLM, Caddy 7500)

- Service Ports: Caddy listens on :7500 and reverse-proxies to Open WebUI at 127.0.0.1:17500.
- vLLM: OpenAI-compatible API on 127.0.0.1:8001 (`/v1`).

Manual start (no supervisor/systemd):
- Environment:
  - `DATA_DIR=/data/adaptai/migrate/vast/workspace-vast1-2/webui`
  - `DATABASE_URL=sqlite:////data/adaptai/migrate/vast/workspace-vast1-2/webui/webui.db`
  - `OPENAI_API_BASE_URL=http://127.0.0.1:8001/v1`
  - `ENABLE_PERSISTENT_CONFIG=True`
  - `WEBUI_AUTH=False`
- Command:
  - `/venv/main/bin/open-webui serve --host 127.0.0.1 --port 17500`

Using the existing script:
- `sudo env WEBUI_AUTH=False ENABLE_PERSISTENT_CONFIG=True OPENAI_API_BASE_URL=http://127.0.0.1:8001/v1 DATA_DIR=/data/adaptai/migrate/vast/workspace-vast1-2/webui DATABASE_URL=sqlite:////data/adaptai/migrate/vast/workspace-vast1-2/webui/webui.db PROC_NAME=open_webui OPENWEBUI_ARGS="--host 127.0.0.1 --port 17500" /opt/supervisor-scripts/open_webui.sh`

Verification:
- `ss -tulpen | rg ":17500\b"` — Open WebUI is listening.
- Load `http://localhost:7500` — should proxy to Open WebUI.

DB basics:
- SQLite absolute path for Peewee requires four slashes: `sqlite:////abs/path/to/webui.db`.
- Config writes live in `config.data` JSON (e.g., `MODEL_ORDER_LIST`, `DEFAULT_MODELS`, `WEBUI_AUTH`).