Update app version [skip ci]

This commit is contained in:
github-action update-app-version
2025-10-04 01:32:42 +00:00
parent e260452404
commit 12fc9f05c8
7 changed files with 0 additions and 0 deletions
+130
View File
@@ -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
+27
View File
@@ -0,0 +1,27 @@
networks:
1panel-network:
external: true
services:
ghost:
image: ghost:6.2.0
container_name: ${CONTAINER_NAME}
labels:
createdBy: "Apps"
restart: always
networks:
- 1panel-network
ports:
- ${PANEL_APP_PORT_HTTP}:2368
env_file:
- ${GLOBAL_ENV_FILE:-/etc/1panel/envs/global.env}
- ${ENV_FILE:-/etc/1panel/envs/default.env}
volumes:
- ${GHOST_ROOT_PATH}/data:/var/lib/ghost/content
environment:
- NODE_ENV=production
- server__host=0.0.0.0
- server__port=2368
- database__client=mysql
- mail__options__service=Email
- mail__options__secure=true
+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