diff --git a/appstore/mx-space/8.4.0/.env b/appstore/mx-space/8.4.0/.env new file mode 100644 index 000000000..435975ebe --- /dev/null +++ b/appstore/mx-space/8.4.0/.env @@ -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= + diff --git a/appstore/mx-space/8.4.0/data.yml b/appstore/mx-space/8.4.0/data.yml new file mode 100644 index 000000000..9366174bb --- /dev/null +++ b/appstore/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/appstore/mx-space/8.4.0/docker-compose.yml b/appstore/mx-space/8.4.0/docker-compose.yml new file mode 100644 index 000000000..e5add5aff --- /dev/null +++ b/appstore/mx-space/8.4.0/docker-compose.yml @@ -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.0 + labels: + createdBy: Apps + networks: + - 1panel-network + ports: + - ${PANEL_APP_PORT_HTTP}:2333 + restart: always + volumes: + - ${MX_SERVER_ROOT_PATH}/data:/root/.mx-space diff --git a/appstore/onedev/12.0.1/envs/default.env b/appstore/mx-space/8.4.0/envs/default.env similarity index 100% rename from appstore/onedev/12.0.1/envs/default.env rename to appstore/mx-space/8.4.0/envs/default.env diff --git a/appstore/onedev/12.0.1/envs/global.env b/appstore/mx-space/8.4.0/envs/global.env similarity index 100% rename from appstore/onedev/12.0.1/envs/global.env rename to appstore/mx-space/8.4.0/envs/global.env diff --git a/appstore/mx-space/8.4.0/scripts/init.sh b/appstore/mx-space/8.4.0/scripts/init.sh new file mode 100644 index 000000000..07fb8c3fe --- /dev/null +++ b/appstore/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/appstore/onedev/12.0.1/scripts/uninstall.sh b/appstore/mx-space/8.4.0/scripts/uninstall.sh similarity index 100% rename from appstore/onedev/12.0.1/scripts/uninstall.sh rename to appstore/mx-space/8.4.0/scripts/uninstall.sh diff --git a/appstore/mx-space/8.4.0/scripts/upgrade.sh b/appstore/mx-space/8.4.0/scripts/upgrade.sh new file mode 100644 index 000000000..07fb8c3fe --- /dev/null +++ b/appstore/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/appstore/mx-space/README.md b/appstore/mx-space/README.md new file mode 100644 index 000000000..161009bf2 --- /dev/null +++ b/appstore/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/appstore/mx-space/data.yml b/appstore/mx-space/data.yml new file mode 100644 index 000000000..eed6dabfb --- /dev/null +++ b/appstore/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/appstore/mx-space/logo.png b/appstore/mx-space/logo.png new file mode 100644 index 000000000..32194a511 Binary files /dev/null and b/appstore/mx-space/logo.png differ diff --git a/appstore/onedev/12.0.1/.env b/appstore/onedev/12.0.2/.env similarity index 100% rename from appstore/onedev/12.0.1/.env rename to appstore/onedev/12.0.2/.env diff --git a/appstore/onedev/12.0.1/data.yml b/appstore/onedev/12.0.2/data.yml similarity index 100% rename from appstore/onedev/12.0.1/data.yml rename to appstore/onedev/12.0.2/data.yml diff --git a/appstore/onedev/12.0.1/docker-compose.yml b/appstore/onedev/12.0.2/docker-compose.yml similarity index 95% rename from appstore/onedev/12.0.1/docker-compose.yml rename to appstore/onedev/12.0.2/docker-compose.yml index f9f989264..3b203946d 100644 --- a/appstore/onedev/12.0.1/docker-compose.yml +++ b/appstore/onedev/12.0.2/docker-compose.yml @@ -14,7 +14,7 @@ services: - initial_email=${INITIAL_EMAIL} - initial_server_url=${INITIAL_SERVER_URL} - initial_ssh_root_url=${INITIAL_SSH_ROOT_URL} - image: 1dev/server:12.0.1 + image: 1dev/server:12.0.2 labels: createdBy: Apps networks: diff --git a/appstore/onedev/12.0.2/envs/default.env b/appstore/onedev/12.0.2/envs/default.env new file mode 100644 index 000000000..cd05f46e6 --- /dev/null +++ b/appstore/onedev/12.0.2/envs/default.env @@ -0,0 +1,2 @@ +# copyright© 2024 XinJiang Ms Studio +ENV_FILE=.env diff --git a/appstore/onedev/12.0.2/envs/global.env b/appstore/onedev/12.0.2/envs/global.env new file mode 100644 index 000000000..e10989fe4 --- /dev/null +++ b/appstore/onedev/12.0.2/envs/global.env @@ -0,0 +1,2 @@ +# copyright© 2024 XinJiang Ms Studio +TZ=Asia/Shanghai diff --git a/appstore/onedev/12.0.1/envs/onedev.env b/appstore/onedev/12.0.2/envs/onedev.env similarity index 100% rename from appstore/onedev/12.0.1/envs/onedev.env rename to appstore/onedev/12.0.2/envs/onedev.env diff --git a/appstore/onedev/12.0.1/scripts/init.sh b/appstore/onedev/12.0.2/scripts/init.sh similarity index 100% rename from appstore/onedev/12.0.1/scripts/init.sh rename to appstore/onedev/12.0.2/scripts/init.sh diff --git a/appstore/onedev/12.0.2/scripts/uninstall.sh b/appstore/onedev/12.0.2/scripts/uninstall.sh new file mode 100644 index 000000000..c86c4fbca --- /dev/null +++ b/appstore/onedev/12.0.2/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/appstore/onedev/12.0.1/scripts/upgrade.sh b/appstore/onedev/12.0.2/scripts/upgrade.sh similarity index 100% rename from appstore/onedev/12.0.1/scripts/upgrade.sh rename to appstore/onedev/12.0.2/scripts/upgrade.sh diff --git a/dockge/mx-space/.env b/dockge/mx-space/.env new file mode 100644 index 000000000..435975ebe --- /dev/null +++ b/dockge/mx-space/.env @@ -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= + diff --git a/dockge/mx-space/docker-compose.yml b/dockge/mx-space/docker-compose.yml new file mode 100644 index 000000000..e5add5aff --- /dev/null +++ b/dockge/mx-space/docker-compose.yml @@ -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.0 + labels: + createdBy: Apps + networks: + - 1panel-network + ports: + - ${PANEL_APP_PORT_HTTP}:2333 + restart: always + volumes: + - ${MX_SERVER_ROOT_PATH}/data:/root/.mx-space diff --git a/dockge/mx-space/envs/default.env b/dockge/mx-space/envs/default.env new file mode 100644 index 000000000..cd05f46e6 --- /dev/null +++ b/dockge/mx-space/envs/default.env @@ -0,0 +1,2 @@ +# copyright© 2024 XinJiang Ms Studio +ENV_FILE=.env diff --git a/dockge/mx-space/envs/global.env b/dockge/mx-space/envs/global.env new file mode 100644 index 000000000..e10989fe4 --- /dev/null +++ b/dockge/mx-space/envs/global.env @@ -0,0 +1,2 @@ +# copyright© 2024 XinJiang Ms Studio +TZ=Asia/Shanghai diff --git a/dockge/onedev/docker-compose.yml b/dockge/onedev/docker-compose.yml index f9f989264..3b203946d 100644 --- a/dockge/onedev/docker-compose.yml +++ b/dockge/onedev/docker-compose.yml @@ -14,7 +14,7 @@ services: - initial_email=${INITIAL_EMAIL} - initial_server_url=${INITIAL_SERVER_URL} - initial_ssh_root_url=${INITIAL_SSH_ROOT_URL} - image: 1dev/server:12.0.1 + image: 1dev/server:12.0.2 labels: createdBy: Apps networks: