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,48 @@
|
||||
# MySQL 服务 (前置检查) [必填]
|
||||
PANEL_DB_TYPE=mysql
|
||||
|
||||
# 数据持久化路径 [必填]
|
||||
GHOST_ROOT_PATH=/home/ghost
|
||||
|
||||
# WebUI 端口 [必填]
|
||||
PANEL_APP_PORT_HTTP=2368
|
||||
|
||||
# 域名 [必填]
|
||||
url=http://127.0.0.1:2368
|
||||
|
||||
# 域名 (后台) [必填]
|
||||
admin__url=http://127.0.0.1:2368
|
||||
|
||||
# 数据库 主机 [必填]
|
||||
database__connection__host=127.0.0.1
|
||||
|
||||
# 数据库 端口 [必填]
|
||||
database__connection__port=3306
|
||||
|
||||
# 数据库 用户名 [必填]
|
||||
database__connection__user=ghost
|
||||
|
||||
# 数据库 密码 [必填]
|
||||
database__connection__password=
|
||||
|
||||
# 数据库 名称 [必填]
|
||||
database__connection__database=ghost
|
||||
|
||||
# 邮件传输协议 [必填]
|
||||
mail__transport=SMTP
|
||||
|
||||
# 邮件服务器 [必填]
|
||||
mail__options__host=smtp.qq.com
|
||||
|
||||
# 邮件服务器 端口 [必填]
|
||||
mail__options__port=465
|
||||
|
||||
# 邮件鉴权 用户名 [必填]
|
||||
mail__options__auth__user=
|
||||
|
||||
# 邮件鉴权 密码 [必填]
|
||||
mail__options__auth__pass=
|
||||
|
||||
# 邮件发送者 [必填]
|
||||
mail__from=
|
||||
|
||||
@@ -0,0 +1,130 @@
|
||||
additionalProperties:
|
||||
formFields:
|
||||
- child:
|
||||
default: ""
|
||||
envKey: PANEL_DB_HOST
|
||||
required: true
|
||||
type: service
|
||||
default: mysql
|
||||
edit: true
|
||||
envKey: PANEL_DB_TYPE
|
||||
labelZh: MySQL 服务 (前置检查)
|
||||
labelEn: Database Service (Pre-check)
|
||||
required: true
|
||||
type: apps
|
||||
values:
|
||||
- label: MySQL
|
||||
value: mysql
|
||||
- label: MariaDB
|
||||
value: mariadb
|
||||
- label: Percona
|
||||
value: percona
|
||||
- default: "/home/ghost"
|
||||
edit: true
|
||||
envKey: GHOST_ROOT_PATH
|
||||
labelZh: 数据持久化路径
|
||||
labelEn: Data persistence path
|
||||
required: true
|
||||
type: text
|
||||
- default: 2368
|
||||
edit: true
|
||||
envKey: PANEL_APP_PORT_HTTP
|
||||
labelZh: WebUI 端口
|
||||
labelEn: WebUI port
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: "http://127.0.0.1:2368"
|
||||
edit: true
|
||||
envKey: url
|
||||
labelZh: 域名
|
||||
labelEn: Domain
|
||||
required: true
|
||||
rule: paramExtUrl
|
||||
type: text
|
||||
- default: "http://127.0.0.1:2368"
|
||||
edit: true
|
||||
envKey: admin__url
|
||||
labelZh: 域名 (后台)
|
||||
labelEn: Domain (Admin)
|
||||
required: true
|
||||
rule: paramExtUrl
|
||||
type: text
|
||||
- default: "127.0.0.1"
|
||||
edit: true
|
||||
envKey: database__connection__host
|
||||
labelZh: 数据库 主机
|
||||
labelEn: Database Host
|
||||
required: true
|
||||
type: text
|
||||
- default: 3306
|
||||
edit: true
|
||||
envKey: database__connection__port
|
||||
labelZh: 数据库 端口
|
||||
labelEn: Database Port
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: "ghost"
|
||||
edit: true
|
||||
envKey: database__connection__user
|
||||
labelZh: 数据库 用户名
|
||||
labelEn: Database Username
|
||||
required: true
|
||||
type: text
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: database__connection__password
|
||||
labelZh: 数据库 密码
|
||||
labelEn: Database Password
|
||||
required: true
|
||||
type: password
|
||||
- default: "ghost"
|
||||
edit: true
|
||||
envKey: database__connection__database
|
||||
labelZh: 数据库 名称
|
||||
labelEn: Database Name
|
||||
required: true
|
||||
type: text
|
||||
- default: "SMTP"
|
||||
edit: true
|
||||
envKey: mail__transport
|
||||
labelZh: 邮件传输协议
|
||||
labelEn: Mail Transport Protocol
|
||||
required: true
|
||||
type: text
|
||||
- default: "smtp.qq.com"
|
||||
edit: true
|
||||
envKey: mail__options__host
|
||||
labelZh: 邮件服务器
|
||||
labelEn: Mail Server
|
||||
required: true
|
||||
type: text
|
||||
- default: 465
|
||||
edit: true
|
||||
envKey: mail__options__port
|
||||
labelZh: 邮件服务器 端口
|
||||
labelEn: Mail Server Port
|
||||
required: true
|
||||
type: number
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: mail__options__auth__user
|
||||
labelZh: 邮件鉴权 用户名
|
||||
labelEn: Mail Username
|
||||
required: true
|
||||
type: text
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: mail__options__auth__pass
|
||||
labelZh: 邮件鉴权 密码
|
||||
labelEn: Mail Password
|
||||
required: true
|
||||
type: password
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: mail__from
|
||||
labelZh: 邮件发送者
|
||||
labelEn: Mail Sender
|
||||
required: true
|
||||
type: text
|
||||
@@ -0,0 +1,26 @@
|
||||
networks:
|
||||
1panel-network:
|
||||
external: true
|
||||
services:
|
||||
ghost:
|
||||
container_name: ghost
|
||||
env_file:
|
||||
- ./envs/global.env
|
||||
- .env
|
||||
environment:
|
||||
- NODE_ENV=production
|
||||
- server__host=0.0.0.0
|
||||
- server__port=2368
|
||||
- database__client=mysql
|
||||
- mail__options__service=Email
|
||||
- mail__options__secure=true
|
||||
image: ghost:6.0.10
|
||||
labels:
|
||||
createdBy: Apps
|
||||
networks:
|
||||
- 1panel-network
|
||||
ports:
|
||||
- ${PANEL_APP_PORT_HTTP}:2368
|
||||
restart: always
|
||||
volumes:
|
||||
- ${GHOST_ROOT_PATH}/data:/var/lib/ghost/content
|
||||
@@ -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