diff --git a/apps/mx-space/8.4.0/data.yml b/apps/mx-space/8.4.0/data.yml new file mode 100644 index 000000000..9366174bb --- /dev/null +++ b/apps/mx-space/8.4.0/data.yml @@ -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 diff --git a/apps/mx-space/8.4.0/docker-compose.yml b/apps/mx-space/8.4.0/docker-compose.yml new file mode 100644 index 000000000..b6a8c6a69 --- /dev/null +++ b/apps/mx-space/8.4.0/docker-compose.yml @@ -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 diff --git a/apps/mx-space/8.4.0/envs/default.env b/apps/mx-space/8.4.0/envs/default.env new file mode 100644 index 000000000..cd05f46e6 --- /dev/null +++ b/apps/mx-space/8.4.0/envs/default.env @@ -0,0 +1,2 @@ +# copyright© 2024 XinJiang Ms Studio +ENV_FILE=.env diff --git a/apps/mx-space/8.4.0/envs/global.env b/apps/mx-space/8.4.0/envs/global.env new file mode 100644 index 000000000..e10989fe4 --- /dev/null +++ b/apps/mx-space/8.4.0/envs/global.env @@ -0,0 +1,2 @@ +# copyright© 2024 XinJiang Ms Studio +TZ=Asia/Shanghai diff --git a/apps/mx-space/8.4.0/scripts/init.sh b/apps/mx-space/8.4.0/scripts/init.sh new file mode 100644 index 000000000..07fb8c3fe --- /dev/null +++ b/apps/mx-space/8.4.0/scripts/init.sh @@ -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 diff --git a/apps/mx-space/8.4.0/scripts/uninstall.sh b/apps/mx-space/8.4.0/scripts/uninstall.sh new file mode 100644 index 000000000..c86c4fbca --- /dev/null +++ b/apps/mx-space/8.4.0/scripts/uninstall.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +if [ -f .env ]; then + source .env + + echo "Check Finish." + +else + echo "Error: .env file not found." +fi diff --git a/apps/mx-space/8.4.0/scripts/upgrade.sh b/apps/mx-space/8.4.0/scripts/upgrade.sh new file mode 100644 index 000000000..07fb8c3fe --- /dev/null +++ b/apps/mx-space/8.4.0/scripts/upgrade.sh @@ -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 diff --git a/apps/mx-space/README.md b/apps/mx-space/README.md new file mode 100644 index 000000000..161009bf2 --- /dev/null +++ b/apps/mx-space/README.md @@ -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) diff --git a/apps/mx-space/data.yml b/apps/mx-space/data.yml new file mode 100644 index 000000000..eed6dabfb --- /dev/null +++ b/apps/mx-space/data.yml @@ -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/ diff --git a/apps/mx-space/logo.png b/apps/mx-space/logo.png new file mode 100644 index 000000000..32194a511 Binary files /dev/null and b/apps/mx-space/logo.png differ