新增应用 MixSpace

Signed-off-by: Meng Sen <qyg2297248353@gmail.com>
This commit is contained in:
Meng Sen
2025-07-28 12:35:20 +08:00
parent 13f14cab5a
commit 143a9bba16
10 changed files with 217 additions and 0 deletions

View File

@@ -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

View File

@@ -0,0 +1,26 @@
networks:
1panel-network:
external: true
services:
mx-server:
image: innei/mx-server:8.4.0
container_name: ${CONTAINER_NAME}
labels:
createdBy: "Apps"
restart: always
networks:
- 1panel-network
ports:
- ${PANEL_APP_PORT_HTTP}:2333
env_file:
- ${GLOBAL_ENV_FILE:-/etc/1panel/envs/global.env}
- ${ENV_FILE:-/etc/1panel/envs/default.env}
volumes:
- ${MX_SERVER_ROOT_PATH}/data:/root/.mx-space
environment:
- TZ=Asia/Shanghai
- PORT=2333
- DEMO=false
- NODE_ENV=production
- ENCRYPT_ENABLE=false

View File

@@ -0,0 +1,2 @@
# copyright© 2024 XinJiang Ms Studio
ENV_FILE=.env

View File

@@ -0,0 +1,2 @@
# copyright© 2024 XinJiang Ms Studio
TZ=Asia/Shanghai

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

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

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

37
apps/mx-space/README.md Normal file
View File

@@ -0,0 +1,37 @@
# MixSpace
Mix Space 是一个现代化的前后端分离个人空间解决方案,也可以作为个人博客使用。
![MixSpace](https://file.lifebus.top/imgs/mx-space_cover.png)
![](https://img.shields.io/badge/%E6%96%B0%E7%96%86%E8%90%8C%E6%A3%AE%E8%BD%AF%E4%BB%B6%E5%BC%80%E5%8F%91%E5%B7%A5%E4%BD%9C%E5%AE%A4-%E6%8F%90%E4%BE%9B%E6%8A%80%E6%9C%AF%E6%94%AF%E6%8C%81-blue)
## 特性
### 基于 Next.js
内置代码分割和图片优化服务器端渲染SSR支持性能强劲速度快SEO 友好。
### 前端轻量快速
其前端主题 Shiro 在 LightHouse 中表现优秀Performance 和 Best practice 指数均大于 90%。
### UI 现代化
前端后端用户界面设计现代化,简洁而不简单,让你的体验更加流畅。
### Markdown 语法支持
Mix Space 原生支持 Markdown 语法,也支持自定义 Markdown 内语法,您可以使用自定义语法来丰富您的内容。
### 后台云函数配置
无限扩展、无限可能,通过 Core 内置的云函数配置功能实现歌单解析,追番列表等功能,还有更多。
### 动态化配置前端
你可以在后台设置前端的配置,比如网站名称,网站描述,网站图标,以及一些其他配置。
---
![Ms Studio](https://file.lifebus.top/imgs/ms_blank_001.png)

14
apps/mx-space/data.yml Normal file
View File

@@ -0,0 +1,14 @@
additionalProperties:
key: mx-space
name: MixSpace
tags:
- WebSite
- Local
shortDescZh: 前后端分离个人空间解决方案
shortDescEn: A frontend-backend separation personal space solution
type: website
crossVersionUpdate: true
limit: 0
website: https://mx-space.js.org/
github: https://github.com/mx-space/
document: https://mx-space.js.org/

BIN
apps/mx-space/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 253 KiB