Merge pull request #10 from outis1one/claude/cleanup-setup-webui-bCgPE
Claude/cleanup setup webui b cg pe
This commit is contained in:
+20
-2
@@ -701,6 +701,11 @@ if [[ ! -f "$BASE/.env" ]]; then
|
|||||||
# Local AI Stack — API Tokens
|
# Local AI Stack — API Tokens
|
||||||
# Edit this file, then restart: bash $BASE/start.sh
|
# Edit this file, then restart: bash $BASE/start.sh
|
||||||
|
|
||||||
|
# Open WebUI — set to your public FQDN when behind a reverse proxy (Caddy etc.)
|
||||||
|
# Without this, sessions/cookies break when accessed via domain name.
|
||||||
|
# Example: WEBUI_URL=https://webui.yourdomain.com
|
||||||
|
WEBUI_URL=
|
||||||
|
|
||||||
# Gitea — generate at http://$LOCAL_IP:3001/user/settings/applications
|
# Gitea — generate at http://$LOCAL_IP:3001/user/settings/applications
|
||||||
GITEA_TOKEN=your-gitea-token-here
|
GITEA_TOKEN=your-gitea-token-here
|
||||||
|
|
||||||
@@ -777,6 +782,7 @@ ${OLLAMA_VOLUME_LINE}
|
|||||||
- RAG_WEB_SEARCH_ENGINE=searxng
|
- RAG_WEB_SEARCH_ENGINE=searxng
|
||||||
- SEARXNG_QUERY_URL=http://searxng:8080/search?q=<query>&format=json
|
- SEARXNG_QUERY_URL=http://searxng:8080/search?q=<query>&format=json
|
||||||
- WEBUI_AUTH=false
|
- WEBUI_AUTH=false
|
||||||
|
- WEBUI_URL=${WEBUI_URL:-}
|
||||||
depends_on:
|
depends_on:
|
||||||
ollama:
|
ollama:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
@@ -876,7 +882,8 @@ ${OLLAMA_VOLUME_LINE}
|
|||||||
- "0.0.0.0:8181:8080"
|
- "0.0.0.0:8181:8080"
|
||||||
volumes:
|
volumes:
|
||||||
- $KIWIX_DIR:/data
|
- $KIWIX_DIR:/data
|
||||||
command: "*.zim"
|
entrypoint: ["sh", "-c"]
|
||||||
|
command: ["until ls /data/*.zim 2>/dev/null; do echo 'kiwix: waiting for ZIM files…'; sleep 60; done && exec kiwix-serve /data/*.zim"]
|
||||||
|
|
||||||
# ── Gitea — Self-hosted Git ─────────────────────────────────────────────────
|
# ── Gitea — Self-hosted Git ─────────────────────────────────────────────────
|
||||||
gitea:
|
gitea:
|
||||||
@@ -1080,7 +1087,12 @@ write_if_new "$BASE/Caddyfile.example" << CADDY
|
|||||||
# Caddy2 reverse proxy — copy to your proxy machine
|
# Caddy2 reverse proxy — copy to your proxy machine
|
||||||
# Replace yourdomain.com with your actual domain
|
# Replace yourdomain.com with your actual domain
|
||||||
|
|
||||||
webui.yourdomain.com { reverse_proxy $(hostname).local:3000 }
|
webui.yourdomain.com {
|
||||||
|
reverse_proxy $(hostname).local:3000 {
|
||||||
|
header_up X-Forwarded-Proto {scheme}
|
||||||
|
header_up X-Forwarded-Host {host}
|
||||||
|
}
|
||||||
|
}
|
||||||
invokeai.yourdomain.com { reverse_proxy $(hostname).local:9090 }
|
invokeai.yourdomain.com { reverse_proxy $(hostname).local:9090 }
|
||||||
search.yourdomain.com { reverse_proxy $(hostname).local:8888 }
|
search.yourdomain.com { reverse_proxy $(hostname).local:8888 }
|
||||||
git.yourdomain.com { reverse_proxy $(hostname).local:3001 }
|
git.yourdomain.com { reverse_proxy $(hostname).local:3001 }
|
||||||
@@ -1287,6 +1299,12 @@ if $INSTALL_AI; then
|
|||||||
fi
|
fi
|
||||||
echo ""
|
echo ""
|
||||||
if $INSTALL_AI; then
|
if $INSTALL_AI; then
|
||||||
|
$SVC_MCP && $SVC_WEBUI && {
|
||||||
|
echo -e " ${YELLOW}Add MCP to Open WebUI (one-time):${NC}"
|
||||||
|
echo " Open WebUI → Admin → Settings → Tools → +"
|
||||||
|
echo " URL: http://$LOCAL_IP:8002/sse"
|
||||||
|
echo ""
|
||||||
|
}
|
||||||
$SVC_MCP && { echo -e " ${YELLOW}Add MCP to Claude Code:${NC}"; echo " claude mcp add local http://$LOCAL_IP:8002/sse"; echo ""; }
|
$SVC_MCP && { echo -e " ${YELLOW}Add MCP to Claude Code:${NC}"; echo " claude mcp add local http://$LOCAL_IP:8002/sse"; echo ""; }
|
||||||
echo -e " ${YELLOW}Add API tokens to:${NC} $BASE/.env"
|
echo -e " ${YELLOW}Add API tokens to:${NC} $BASE/.env"
|
||||||
$SVC_RAG && echo -e " ${YELLOW}Drop PDFs into:${NC} $BASE/papers/"
|
$SVC_RAG && echo -e " ${YELLOW}Drop PDFs into:${NC} $BASE/papers/"
|
||||||
|
|||||||
Reference in New Issue
Block a user