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,36 @@
|
||||
# 数据持久化路径 [必填]
|
||||
MX_SERVER_ROOT_PATH=/home/mx-space
|
||||
|
||||
# WebUI 端口 [必填]
|
||||
PANEL_APP_PORT_HTTP=2333
|
||||
|
||||
# JWT 密钥 [必填]
|
||||
JWT_SECRET=
|
||||
|
||||
# 允许的访问来源 [必填]
|
||||
ALLOWED_ORIGINS=,localhost
|
||||
|
||||
# 数据库 主机地址 (MongoDB) [必填]
|
||||
DB_HOST=127.0.0.1
|
||||
|
||||
# 数据库 端口 (MongoDB) [必填]
|
||||
DB_PORT=27017
|
||||
|
||||
# 数据库 名称 (MongoDB) [必填]
|
||||
DB_COLLECTION_NAME=mx-space
|
||||
|
||||
# 数据库 用户名 (MongoDB)
|
||||
DB_USER=mx-space
|
||||
|
||||
# 数据库 密码 (MongoDB)
|
||||
DB_PASSWORD=mx-space
|
||||
|
||||
# Redis 主机 [必填]
|
||||
REDIS_HOST=127.0.0.1
|
||||
|
||||
# Redis 端口 [必填]
|
||||
REDIS_PORT=6379
|
||||
|
||||
# Redis 密码
|
||||
REDIS_PASSWORD=
|
||||
|
||||
@@ -0,0 +1,92 @@
|
||||
additionalProperties:
|
||||
formFields:
|
||||
- default: "/home/mx-space"
|
||||
edit: true
|
||||
envKey: MX_SERVER_ROOT_PATH
|
||||
labelZh: 数据持久化路径
|
||||
labelEn: Data persistence path
|
||||
required: true
|
||||
type: text
|
||||
- default: 2333
|
||||
edit: true
|
||||
envKey: PANEL_APP_PORT_HTTP
|
||||
labelZh: WebUI 端口
|
||||
labelEn: WebUI port
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: JWT_SECRET
|
||||
labelZh: JWT 密钥
|
||||
labelEn: JWT Secret
|
||||
required: true
|
||||
type: text
|
||||
- default: ",localhost"
|
||||
edit: true
|
||||
envKey: ALLOWED_ORIGINS
|
||||
labelZh: 允许的访问来源
|
||||
labelEn: 允许的访问来源
|
||||
required: true
|
||||
type: text
|
||||
- default: "127.0.0.1"
|
||||
edit: true
|
||||
envKey: DB_HOST
|
||||
labelZh: 数据库 主机地址 (MongoDB)
|
||||
labelEn: Database Host (MongoDB)
|
||||
required: true
|
||||
type: text
|
||||
- default: 27017
|
||||
edit: true
|
||||
envKey: DB_PORT
|
||||
labelZh: 数据库 端口 (MongoDB)
|
||||
labelEn: Database Port (MongoDB)
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: "mx-space"
|
||||
edit: true
|
||||
envKey: DB_COLLECTION_NAME
|
||||
labelZh: 数据库 名称 (MongoDB)
|
||||
labelEn: Database Name (MongoDB)
|
||||
required: true
|
||||
rule: paramCommon
|
||||
type: text
|
||||
- default: "mx-space"
|
||||
edit: true
|
||||
envKey: DB_USER
|
||||
labelZh: 数据库 用户名 (MongoDB)
|
||||
labelEn: Database Username (MongoDB)
|
||||
required: false
|
||||
type: text
|
||||
- default: "mx-space"
|
||||
edit: true
|
||||
envKey: DB_PASSWORD
|
||||
labelZh: 数据库 密码 (MongoDB)
|
||||
labelEn: Database Password (MongoDB)
|
||||
random: true
|
||||
required: false
|
||||
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: ""
|
||||
edit: true
|
||||
envKey: REDIS_PASSWORD
|
||||
labelZh: Redis 密码
|
||||
labelEn: Redis Password
|
||||
required: false
|
||||
type: password
|
||||
@@ -0,0 +1,25 @@
|
||||
networks:
|
||||
1panel-network:
|
||||
external: true
|
||||
services:
|
||||
mx-server:
|
||||
container_name: mx-space
|
||||
env_file:
|
||||
- ./envs/global.env
|
||||
- .env
|
||||
environment:
|
||||
- TZ=Asia/Shanghai
|
||||
- PORT=2333
|
||||
- DEMO=false
|
||||
- NODE_ENV=production
|
||||
- ENCRYPT_ENABLE=false
|
||||
image: innei/mx-server:8.4.2
|
||||
labels:
|
||||
createdBy: Apps
|
||||
networks:
|
||||
- 1panel-network
|
||||
ports:
|
||||
- ${PANEL_APP_PORT_HTTP}:2333
|
||||
restart: always
|
||||
volumes:
|
||||
- ${MX_SERVER_ROOT_PATH}/data:/root/.mx-space
|
||||
@@ -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