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,87 @@
|
||||
# Postgres 服务 (前置检查) [必填]
|
||||
PANEL_POSTGRES_TYPE=postgresql
|
||||
|
||||
# Redis 服务 (前置检查) [必填]
|
||||
PANEL_REDIS_TYPE=redis
|
||||
|
||||
# 数据持久化路径 [必填]
|
||||
WEBLATE_ROOT_PATH=/home/weblate
|
||||
|
||||
# WebUI 端口 [必填]
|
||||
PANEL_APP_PORT_HTTP=8080
|
||||
|
||||
# 管理员名称 [必填]
|
||||
WEBLATE_ADMIN_NAME=Weblate admin
|
||||
|
||||
# 管理员邮箱 [必填]
|
||||
WEBLATE_ADMIN_EMAIL=weblate@example.com
|
||||
|
||||
# 管理员密码 [必填]
|
||||
WEBLATE_ADMIN_PASSWORD=
|
||||
|
||||
# 站点域名 [必填]
|
||||
WEBLATE_SITE_DOMAIN=
|
||||
|
||||
# 站点标题 [必填]
|
||||
WEBLATE_SITE_TITLE=Weblate 翻译平台
|
||||
|
||||
# 是否开放注册 [必填]
|
||||
WEBLATE_REGISTRATION_OPEN=1
|
||||
|
||||
# 数据库 主机地址 [必填]
|
||||
POSTGRES_HOST=127.0.0.1
|
||||
|
||||
# 数据库 端口 [必填]
|
||||
POSTGRES_PORT=5432
|
||||
|
||||
# 数据库 名称 [必填]
|
||||
POSTGRES_DB=weblate
|
||||
|
||||
# 数据库 用户名 [必填]
|
||||
POSTGRES_USER=weblate
|
||||
|
||||
# 数据库 密码 [必填]
|
||||
POSTGRES_PASSWORD=
|
||||
|
||||
# Redis 主机 [必填]
|
||||
REDIS_HOST=127.0.0.1
|
||||
|
||||
# Redis 端口 [必填]
|
||||
REDIS_PORT=6379
|
||||
|
||||
# Redis 索引 (0-20) [必填]
|
||||
REDIS_DB=0
|
||||
|
||||
# Redis 密码
|
||||
REDIS_PASSWORD=
|
||||
|
||||
# 错误信息通知邮箱 [必填]
|
||||
WEBLATE_SERVER_EMAIL=
|
||||
|
||||
# 默认发件邮箱 [必填]
|
||||
WEBLATE_DEFAULT_FROM_EMAIL=
|
||||
|
||||
# 电子邮件服务器主机名 [必填]
|
||||
WEBLATE_EMAIL_HOST=smtp.gmail.com
|
||||
|
||||
# 电子邮件服务器端口 (465/SSL 587/TLS) [必填]
|
||||
WEBLATE_EMAIL_PORT=465
|
||||
|
||||
# 电子邮件服务器用户名 [必填]
|
||||
WEBLATE_EMAIL_HOST_USER=
|
||||
|
||||
# 电子邮件服务器密码 [必填]
|
||||
WEBLATE_EMAIL_HOST_PASSWORD=
|
||||
|
||||
# 帮助文档链接
|
||||
GET_HELP_URL=
|
||||
|
||||
# 服务状态链接
|
||||
STATUS_URL=
|
||||
|
||||
# 法律声明链接
|
||||
LEGAL_URL=
|
||||
|
||||
# 隐私政策链接
|
||||
PRIVACY_URL=
|
||||
|
||||
@@ -0,0 +1,230 @@
|
||||
additionalProperties:
|
||||
formFields:
|
||||
- child:
|
||||
default: ""
|
||||
envKey: PANEL_POSTGRES_SERVICE
|
||||
required: true
|
||||
type: service
|
||||
default: postgresql
|
||||
envKey: PANEL_POSTGRES_TYPE
|
||||
labelZh: Postgres 服务 (前置检查)
|
||||
labelEn: Postgres Service (Pre-check)
|
||||
required: true
|
||||
type: apps
|
||||
values:
|
||||
- label: PostgreSQL
|
||||
value: postgresql
|
||||
- child:
|
||||
default: ""
|
||||
envKey: PANEL_REDIS_SERVICE
|
||||
required: true
|
||||
type: service
|
||||
default: redis
|
||||
envKey: PANEL_REDIS_TYPE
|
||||
labelZh: Redis 服务 (前置检查)
|
||||
labelEn: Redis Service (Pre-check)
|
||||
required: true
|
||||
type: apps
|
||||
values:
|
||||
- label: Redis
|
||||
value: redis
|
||||
- default: "/home/weblate"
|
||||
edit: true
|
||||
envKey: WEBLATE_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: "Weblate admin"
|
||||
edit: true
|
||||
envKey: WEBLATE_ADMIN_NAME
|
||||
labelZh: 管理员名称
|
||||
labelEn: Admin name
|
||||
required: true
|
||||
type: text
|
||||
- default: "weblate@example.com"
|
||||
edit: true
|
||||
envKey: WEBLATE_ADMIN_EMAIL
|
||||
labelZh: 管理员邮箱
|
||||
labelEn: Admin email
|
||||
required: true
|
||||
type: text
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: WEBLATE_ADMIN_PASSWORD
|
||||
labelZh: 管理员密码
|
||||
labelEn: Admin password
|
||||
required: true
|
||||
type: password
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: WEBLATE_SITE_DOMAIN
|
||||
labelZh: 站点域名
|
||||
labelEn: Site domain
|
||||
required: true
|
||||
type: text
|
||||
- default: "Weblate 翻译平台"
|
||||
edit: true
|
||||
envKey: WEBLATE_SITE_TITLE
|
||||
labelZh: 站点标题
|
||||
labelEn: Site title
|
||||
required: true
|
||||
type: text
|
||||
- default: "1"
|
||||
edit: true
|
||||
envKey: WEBLATE_REGISTRATION_OPEN
|
||||
labelZh: 是否开放注册
|
||||
labelEn: Registration open
|
||||
required: true
|
||||
type: select
|
||||
values:
|
||||
- label: 允许注册
|
||||
value: "1"
|
||||
- label: 禁止注册
|
||||
value: "0"
|
||||
- default: "127.0.0.1"
|
||||
edit: true
|
||||
envKey: POSTGRES_HOST
|
||||
labelZh: 数据库 主机地址
|
||||
labelEn: Database Host
|
||||
required: true
|
||||
type: text
|
||||
- default: 5432
|
||||
edit: true
|
||||
envKey: POSTGRES_PORT
|
||||
labelZh: 数据库 端口
|
||||
labelEn: Database Port
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: "weblate"
|
||||
edit: true
|
||||
envKey: POSTGRES_DB
|
||||
labelZh: 数据库 名称
|
||||
labelEn: Database Name
|
||||
required: true
|
||||
rule: paramCommon
|
||||
type: text
|
||||
- default: "weblate"
|
||||
edit: true
|
||||
envKey: POSTGRES_USER
|
||||
labelZh: 数据库 用户名
|
||||
labelEn: Database Username
|
||||
required: true
|
||||
type: text
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: POSTGRES_PASSWORD
|
||||
labelZh: 数据库 密码
|
||||
labelEn: Database Password
|
||||
random: true
|
||||
required: true
|
||||
rule: paramComplexity
|
||||
type: password
|
||||
- default: "127.0.0.1"
|
||||
edit: true
|
||||
envKey: REDIS_HOST
|
||||
labelZh: Redis 主机
|
||||
labelEn: Redis Host
|
||||
required: true
|
||||
type: text
|
||||
- default: 6379
|
||||
edit: true
|
||||
envKey: REDIS_PORT
|
||||
labelZh: Redis 端口
|
||||
labelEn: Redis Port
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: 0
|
||||
edit: true
|
||||
envKey: REDIS_DB
|
||||
labelZh: Redis 索引 (0-20)
|
||||
labelEn: Redis Index (0-20)
|
||||
required: true
|
||||
type: number
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: REDIS_PASSWORD
|
||||
labelZh: Redis 密码
|
||||
labelEn: Redis Password
|
||||
required: false
|
||||
type: password
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: WEBLATE_SERVER_EMAIL
|
||||
labelZh: 错误信息通知邮箱
|
||||
labelEn: Error notification email
|
||||
required: true
|
||||
type: text
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: WEBLATE_DEFAULT_FROM_EMAIL
|
||||
labelZh: 默认发件邮箱
|
||||
labelEn: Default sender email
|
||||
required: true
|
||||
type: text
|
||||
- default: "smtp.gmail.com"
|
||||
edit: true
|
||||
envKey: WEBLATE_EMAIL_HOST
|
||||
labelZh: 电子邮件服务器主机名
|
||||
labelEn: Email server hostname
|
||||
required: true
|
||||
type: text
|
||||
- default: 465
|
||||
edit: true
|
||||
envKey: WEBLATE_EMAIL_PORT
|
||||
labelZh: 电子邮件服务器端口 (465/SSL 587/TLS)
|
||||
labelEn: Email server port (465/SSL 587/TLS)
|
||||
required: true
|
||||
type: number
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: WEBLATE_EMAIL_HOST_USER
|
||||
labelZh: 电子邮件服务器用户名
|
||||
labelEn: Email server username
|
||||
required: true
|
||||
type: text
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: WEBLATE_EMAIL_HOST_PASSWORD
|
||||
labelZh: 电子邮件服务器密码
|
||||
labelEn: Email server password
|
||||
required: true
|
||||
type: password
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: GET_HELP_URL
|
||||
labelZh: 帮助文档链接
|
||||
labelEn: Help document link
|
||||
required: false
|
||||
type: text
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: STATUS_URL
|
||||
labelZh: 服务状态链接
|
||||
labelEn: Service status link
|
||||
required: false
|
||||
type: text
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: LEGAL_URL
|
||||
labelZh: 法律声明链接
|
||||
labelEn: Legal statement link
|
||||
required: false
|
||||
type: text
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: PRIVACY_URL
|
||||
labelZh: 隐私政策链接
|
||||
labelEn: Privacy policy link
|
||||
required: false
|
||||
type: text
|
||||
@@ -0,0 +1,33 @@
|
||||
networks:
|
||||
1panel-network:
|
||||
external: true
|
||||
services:
|
||||
weblate:
|
||||
container_name: weblate
|
||||
env_file:
|
||||
- ./envs/global.env
|
||||
- .env
|
||||
environment:
|
||||
- TZ=Asia/Shanghai
|
||||
- WEBLATE_TIME_ZONE=Asia/Shanghai
|
||||
- WEBLATE_WORKERS=2
|
||||
- WEBLATE_DEBUG=0
|
||||
- WEBLATE_LOGLEVEL=INFO
|
||||
- WEBLATE_ALLOWED_HOSTS=*
|
||||
- POSTGRES_DATABASE=weblate
|
||||
- CLIENT_MAX_BODY_SIZE=200M
|
||||
image: weblate/weblate:5.14.0.0
|
||||
labels:
|
||||
createdBy: Apps
|
||||
networks:
|
||||
- 1panel-network
|
||||
ports:
|
||||
- ${PANEL_APP_PORT_HTTP}:8080
|
||||
read_only: true
|
||||
restart: always
|
||||
tmpfs:
|
||||
- /run
|
||||
- /tmp
|
||||
volumes:
|
||||
- ${WEBLATE_ROOT_PATH}/data:/app/data
|
||||
- ${WEBLATE_ROOT_PATH}/cache:/app/cache
|
||||
@@ -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,26 @@
|
||||
#!/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
|
||||
|
||||
# setup-2 update dir permissions
|
||||
mkdir -p "$WEBLATE_ROOT_PATH"
|
||||
mkdir -p "$WEBLATE_ROOT_PATH/data"
|
||||
mkdir -p "$WEBLATE_ROOT_PATH/cache"
|
||||
|
||||
chown -R 1000:1000 "$WEBLATE_ROOT_PATH"
|
||||
chown -R 1000:1000 "$WEBLATE_ROOT_PATH/data"
|
||||
chown -R 1000:1000 "$WEBLATE_ROOT_PATH/cache"
|
||||
|
||||
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,26 @@
|
||||
#!/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
|
||||
|
||||
# setup-2 update dir permissions
|
||||
mkdir -p "$WEBLATE_ROOT_PATH"
|
||||
mkdir -p "$WEBLATE_ROOT_PATH/data"
|
||||
mkdir -p "$WEBLATE_ROOT_PATH/cache"
|
||||
|
||||
chown -R 1000:1000 "$WEBLATE_ROOT_PATH"
|
||||
chown -R 1000:1000 "$WEBLATE_ROOT_PATH/data"
|
||||
chown -R 1000:1000 "$WEBLATE_ROOT_PATH/cache"
|
||||
|
||||
echo "Check Finish."
|
||||
|
||||
else
|
||||
echo "Error: .env file not found."
|
||||
fi
|
||||
Reference in New Issue
Block a user