Synced apps from source repository via GitHub Actions

This commit is contained in:
QYG2297248353
2025-09-01 09:25:40 +00:00
parent a99da5d6b6
commit 1011d9270e
27 changed files with 317 additions and 6 deletions
+63
View File
@@ -0,0 +1,63 @@
# Postgres 服务 (前置检查) [必填]
PANEL_POSTGRES_TYPE=postgresql
# 数据持久化路径 [必填]
READECK_ROOT_PATH=/home/readeck
# WebUI 端口 [必填]
PANEL_APP_PORT_HTTP=8000
# 数据库 主机地址 [必填]
POSTGRES_HOST=127.0.0.1
# 数据库 端口 [必填]
POSTGRES_PORT=5432
# 数据库 名称 [必填]
POSTGRES_NAME=readeck
# 数据库 用户名 [必填]
POSTGRES_USER=readeck
# 数据库 密码 [必填]
POSTGRES_PASSWORD=
# 前缀路径
READECK_SERVER_PREFIX=/
# HTTP 请求中允许的主机名列表
READECK_ALLOWED_HOSTS=
# 绑定域名
READECK_SERVER_BASE_URL=
# 分享有效期 [必填]
READECK_PUBLIC_SHARE_TTL=24
# 邮件服务器
READECK_MAIL_HOST=smtp.qq.com
# 邮件服务器 端口
READECK_MAIL_PORT=465
# 邮件鉴权 用户名
READECK_MAIL_USERNAME=
# 邮件鉴权 密码
READECK_MAIL_PASSWORD=
# 邮件发送者
READECK_MAIL_FROM=
# 邮件发送者 (无回复)
READECK_MAIL_FROMNOREPLY=
# 服务器证书验证
READECK_MAIL_INSECURE=false
# SMTP 主机 加密方式
READECK_MAIL_ENCRYPTION=
# 网络代理
HTTP_PROXY=
+171
View File
@@ -0,0 +1,171 @@
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
- default: "/home/readeck"
edit: true
envKey: READECK_ROOT_PATH
labelZh: 数据持久化路径
labelEn: Data persistence path
required: true
type: text
- default: 8000
edit: true
envKey: PANEL_APP_PORT_HTTP
labelZh: WebUI 端口
labelEn: WebUI port
required: true
rule: paramPort
type: number
- 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: "readeck"
edit: true
envKey: POSTGRES_NAME
labelZh: 数据库 名称
labelEn: Database Name
required: true
rule: paramCommon
type: text
- default: "readeck"
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: "/"
edit: true
envKey: READECK_SERVER_PREFIX
labelZh: 前缀路径
labelEn: Prefix path
required: false
type: text
- default: ""
edit: true
envKey: READECK_ALLOWED_HOSTS
labelZh: HTTP 请求中允许的主机名列表
labelEn: HTTP request allowed host name list
required: false
type: text
- default: ""
edit: true
envKey: READECK_SERVER_BASE_URL
labelZh: 绑定域名
labelEn: Binding domain
required: false
type: text
- default: 24
edit: true
envKey: READECK_PUBLIC_SHARE_TTL
labelZh: 分享有效期
labelEn: Share validity period
required: true
type: number
- default: "smtp.qq.com"
edit: true
envKey: READECK_MAIL_HOST
labelZh: 邮件服务器
labelEn: Mail Server
required: false
type: text
- default: 465
edit: true
envKey: READECK_MAIL_PORT
labelZh: 邮件服务器 端口
labelEn: Mail Server Port
required: false
type: number
- default: ""
edit: true
envKey: READECK_MAIL_USERNAME
labelZh: 邮件鉴权 用户名
labelEn: Mail Username
required: false
type: text
- default: ""
edit: true
envKey: READECK_MAIL_PASSWORD
labelZh: 邮件鉴权 密码
labelEn: Mail Password
required: false
type: password
- default: ""
edit: true
envKey: READECK_MAIL_FROM
labelZh: 邮件发送者
labelEn: Mail Sender
required: false
type: text
- default: ""
edit: true
envKey: READECK_MAIL_FROMNOREPLY
labelZh: 邮件发送者 (无回复)
labelEn: Mail Sender (No Reply)
required: false
type: text
- default: "false"
edit: true
envKey: READECK_MAIL_INSECURE
labelZh: 服务器证书验证
labelEn: Server certificate verification
required: false
type: select
values:
- label: 不验证
value: "true"
- label: 验证
value: "false"
- default: ""
edit: true
envKey: READECK_MAIL_ENCRYPTION
labelZh: SMTP 主机 加密方式
labelEn: SMTP Host Encryption Method
required: false
type: select
values:
- label: StartTLS
value: "starttls"
- label: SSL/TLS
value: "ssltls"
- default: ""
edit: true
envKey: HTTP_PROXY
labelZh: 网络代理
labelEn: Network proxy
required: false
type: text
+36
View File
@@ -0,0 +1,36 @@
networks:
1panel-network:
external: true
services:
readeck:
container_name: readeck-pg
env_file:
- ./envs/global.env
- .env
environment:
- TZ=Asia/Shanghai
- READECK_LOG_LEVEL=info
- READECK_SERVER_HOST=0.0.0.0
- READECK_SERVER_PORT=${PANEL_APP_PORT_HTTP}
- READECK_DATABASE_SOURCE=postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_NAME}
- HTTPS_PROXY=${HTTP_PROXY:-}
healthcheck:
interval: 30s
retries: 3
test:
- CMD
- /bin/readeck
- healthcheck
- -config
- config.toml
timeout: 2s
image: codeberg.org/readeck/readeck:0.20.1
labels:
createdBy: Apps
networks:
- 1panel-network
ports:
- ${PANEL_APP_PORT_HTTP}:${PANEL_APP_PORT_HTTP}
restart: always
volumes:
- ${READECK_ROOT_PATH}/data:/readeck
+2
View File
@@ -0,0 +1,2 @@
# copyright© 2024 XinJiang Ms Studio
ENV_FILE=.env
+2
View File
@@ -0,0 +1,2 @@
# copyright© 2024 XinJiang Ms Studio
TZ=Asia/Shanghai
+17
View File
@@ -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
+17
View File
@@ -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