mirror of
https://github.com/QYG2297248353/appstore-dpanel
synced 2025-12-29 08:01:36 +08:00
Synced apps from source repository via GitHub Actions
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
# 数据持久化路径 [必填]
|
||||
OPEN_WEBUI_ROOT_PATH=/home/open-webui
|
||||
|
||||
# WebUI 端口 [必填]
|
||||
PANEL_APP_PORT_HTTP=8080
|
||||
|
||||
# Ollama 服务地址 [必填]
|
||||
OLLAMA_BASE_URL=http://127.0.0.1:11434
|
||||
|
||||
# Ollama 负载均衡服务列表
|
||||
OLLAMA_BASE_URLS=
|
||||
|
||||
# 访问令牌密钥
|
||||
WEBUI_SECRET_KEY=
|
||||
|
||||
# 应用名称 [必填]
|
||||
WEBUI_NAME=Open WebUI
|
||||
|
||||
# 应用服务地址 [必填]
|
||||
WEBUI_URL=http://localhost:8080
|
||||
|
||||
# 离线模式 [必填]
|
||||
HF_HUB_OFFLINE=0
|
||||
|
||||
# 网络代理
|
||||
http_proxy=
|
||||
|
||||
# 忽略代理
|
||||
no_proxy=
|
||||
|
||||
@@ -0,0 +1,78 @@
|
||||
additionalProperties:
|
||||
formFields:
|
||||
- default: "/home/open-webui"
|
||||
edit: true
|
||||
envKey: OPEN_WEBUI_ROOT_PATH
|
||||
labelZh: 数据持久化路径
|
||||
labelEn: Data persistence path
|
||||
required: true
|
||||
type: text
|
||||
- default: 8080
|
||||
edit: true
|
||||
envKey: PANEL_APP_PORT_HTTP
|
||||
labelZh: WebUI 端口
|
||||
labelEn: WebUI port
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: "http://127.0.0.1:11434"
|
||||
edit: true
|
||||
envKey: OLLAMA_BASE_URL
|
||||
labelZh: Ollama 服务地址
|
||||
labelEn: Ollama service address
|
||||
required: true
|
||||
type: text
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: OLLAMA_BASE_URLS
|
||||
labelZh: Ollama 负载均衡服务列表
|
||||
labelEn: Ollama load balancing service list
|
||||
required: false
|
||||
type: text
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: WEBUI_SECRET_KEY
|
||||
labelZh: 访问令牌密钥
|
||||
labelEn: Access token key
|
||||
required: false
|
||||
type: text
|
||||
- default: "Open WebUI"
|
||||
edit: true
|
||||
envKey: WEBUI_NAME
|
||||
labelZh: 应用名称
|
||||
labelEn: Application name
|
||||
required: true
|
||||
type: text
|
||||
- default: "http://localhost:8080"
|
||||
edit: true
|
||||
envKey: WEBUI_URL
|
||||
labelZh: 应用服务地址
|
||||
labelEn: Application service address
|
||||
required: true
|
||||
type: text
|
||||
- default: "0"
|
||||
edit: true
|
||||
envKey: HF_HUB_OFFLINE
|
||||
labelZh: 离线模式
|
||||
labelEn: Offline mode
|
||||
required: true
|
||||
type: select
|
||||
values:
|
||||
- label: 启用
|
||||
value: "1"
|
||||
- label: 禁用
|
||||
value: "0"
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: http_proxy
|
||||
labelZh: 网络代理
|
||||
labelEn: Network proxy
|
||||
required: false
|
||||
type: text
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: no_proxy
|
||||
labelZh: 忽略代理
|
||||
labelEn: Ignore proxy
|
||||
required: false
|
||||
type: text
|
||||
@@ -0,0 +1,27 @@
|
||||
networks:
|
||||
1panel-network:
|
||||
external: true
|
||||
services:
|
||||
open-webui:
|
||||
container_name: open-webui
|
||||
devices:
|
||||
- /dev/dri:/dev/dri
|
||||
env_file:
|
||||
- ./envs/global.env
|
||||
- .env
|
||||
environment:
|
||||
- TZ=Asia/Shanghai
|
||||
- PORT=8080
|
||||
- ENABLE_OLLAMA_API=True
|
||||
- ENABLE_OPENAI_API=False
|
||||
- https_proxy=${http_proxy}
|
||||
image: ghcr.io/open-webui/open-webui:v0.6.15
|
||||
labels:
|
||||
createdBy: Apps
|
||||
networks:
|
||||
- 1panel-network
|
||||
ports:
|
||||
- ${PANEL_APP_PORT_HTTP}:8080
|
||||
restart: always
|
||||
volumes:
|
||||
- ${OPEN_WEBUI_ROOT_PATH}/data:/app/backend/data
|
||||
@@ -0,0 +1,2 @@
|
||||
# copyright© 2024 XinJiang Ms Studio
|
||||
ENV_FILE=.env
|
||||
@@ -0,0 +1,2 @@
|
||||
# copyright© 2024 XinJiang Ms Studio
|
||||
TZ=Asia/Shanghai
|
||||
@@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -f .env ]; then
|
||||
source .env
|
||||
|
||||
# setup-1 add default values
|
||||
CURRENT_DIR=$(pwd)
|
||||
sed -i '/^ENV_FILE=/d' .env
|
||||
sed -i '/^GLOBAL_ENV_FILE=/d' .env
|
||||
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
|
||||
echo "GLOBAL_ENV_FILE=${CURRENT_DIR}/envs/global.env" >> .env
|
||||
|
||||
echo "Check Finish."
|
||||
|
||||
else
|
||||
echo "Error: .env file not found."
|
||||
fi
|
||||
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -f .env ]; then
|
||||
source .env
|
||||
|
||||
echo "Check Finish."
|
||||
|
||||
else
|
||||
echo "Error: .env file not found."
|
||||
fi
|
||||
@@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -f .env ]; then
|
||||
source .env
|
||||
|
||||
# setup-1 add default values
|
||||
CURRENT_DIR=$(pwd)
|
||||
sed -i '/^ENV_FILE=/d' .env
|
||||
sed -i '/^GLOBAL_ENV_FILE=/d' .env
|
||||
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
|
||||
echo "GLOBAL_ENV_FILE=${CURRENT_DIR}/envs/global.env" >> .env
|
||||
|
||||
echo "Check Finish."
|
||||
|
||||
else
|
||||
echo "Error: .env file not found."
|
||||
fi
|
||||
Reference in New Issue
Block a user