Synced apps from source repository via GitHub Actions

This commit is contained in:
QYG2297248353
2025-09-26 18:27:51 +00:00
parent 92299a70cd
commit 1e5d6938d8
8 changed files with 1 additions and 1 deletions
+18
View File
@@ -0,0 +1,18 @@
# 数据库服务 (前置检查) [必填]
PANEL_DB_TYPE=postgresql
# 数据持久化路径 [必填]
SHIORI_ROOT_PATH=/home/shiori
# 访问端口 [必填]
PANEL_APP_PORT_HTTP=8080
# 服务模式 [必填]
SHIORI_HTTP_SERVE_WEB_UI=True
# Web UI 密钥 [必填]
SHIORI_HTTP_SECRET_KEY=
# 数据库链接 URL [必填]
SHIORI_DATABASE_URL=
+63
View File
@@ -0,0 +1,63 @@
additionalProperties:
formFields:
- child:
default: ""
envKey: PANEL_DB_HOST
required: true
type: service
default: postgresql
envKey: PANEL_DB_TYPE
labelZh: 数据库服务 (前置检查)
labelEn: Database Service
required: true
type: apps
values:
- label: PostgreSQL
value: postgresql
- label: MySQL
value: mysql
- label: MariaDB
value: mariadb
- label: Percona
value: percona
- default: "/home/shiori"
edit: true
envKey: SHIORI_ROOT_PATH
labelZh: 数据持久化路径
labelEn: Data persistence path
required: true
type: text
- default: 8080
edit: true
envKey: PANEL_APP_PORT_HTTP
labelZh: 访问端口
labelEn: Port
required: true
rule: paramPort
type: number
- default: "True"
edit: true
envKey: SHIORI_HTTP_SERVE_WEB_UI
labelZh: 服务模式
labelEn: Serve Mode
required: true
type: select
values:
- label: Web UI 模式
value: "True"
- label: 仅限 API 模式
value: "False"
- default: ""
edit: true
envKey: SHIORI_HTTP_SECRET_KEY
labelZh: Web UI 密钥
labelEn: Web UI Secret Key
required: true
type: text
- default: ""
edit: true
envKey: SHIORI_DATABASE_URL
labelZh: 数据库链接 URL
labelEn: Database URL
required: true
type: text
+33
View File
@@ -0,0 +1,33 @@
networks:
1panel-network:
external: true
services:
shiori:
container_name: shiori
env_file:
- ./envs/global.env
- .env
environment:
- SHIORI_DIR=/srv/shiori
- SHIORI_DEVELOPMENT=False
- SHIORI_HTTP_ENABLED=True
- SHIORI_HTTP_PORT=8080
- SHIORI_HTTP_ROOT_PATH=/
- SHIORI_HTTP_ACCESS_LOG=True
- SHIORI_HTTP_BODY_LIMIT=1024
- SHIORI_HTTP_READ_TIMEOUT=10s
- SHIORI_HTTP_WRITE_TIMEOUT=10s
- SHIORI_HTTP_IDLE_TIMEOUT=10s
- SHIORI_HTTP_DISABLE_KEEP_ALIVE=true
- SHIORI_HTTP_DISABLE_PARSE_MULTIPART_FORM=true
image: ghcr.io/go-shiori/shiori:v1.8.0
labels:
createdBy: Apps
networks:
- 1panel-network
ports:
- ${PANEL_APP_PORT_HTTP}:8080
restart: always
volumes:
- ${SHIORI_ROOT_PATH}/dev-data:/srv/shiori
- ${SHIORI_ROOT_PATH}/data:/src/shiori
+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
+10
View File
@@ -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