diff --git a/apps/mx-space-db/8.4.0/data.yml b/apps/mx-space-db/8.4.0/data.yml new file mode 100644 index 000000000..226ebb47a --- /dev/null +++ b/apps/mx-space-db/8.4.0/data.yml @@ -0,0 +1,31 @@ +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 diff --git a/apps/mx-space-db/8.4.0/docker-compose.yml b/apps/mx-space-db/8.4.0/docker-compose.yml new file mode 100644 index 000000000..a340a167a --- /dev/null +++ b/apps/mx-space-db/8.4.0/docker-compose.yml @@ -0,0 +1,49 @@ +networks: + 1panel-network: + external: true + +services: + mx-server: + image: innei/mx-server:8.4.0 + depends_on: + - mx-mongo + - mx-redis + 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 + - DB_HOST=mx-mongo + - REDIS_HOST=mx-redis + + mx-mongo: + image: mongo + container_name: mongo-${CONTAINER_NAME} + volumes: + - ${MX_SERVER_ROOT_PATH}/db:/data/db + networks: + - 1panel-network + restart: always + + mx-redis: + image: redis:alpine + container_name: redis-${CONTAINER_NAME} + volumes: + - ${MX_SERVER_ROOT_PATH}/redis:/data + networks: + - 1panel-network + restart: always diff --git a/apps/openpanel/25.6.5.41-alpine/envs/default.env b/apps/mx-space-db/8.4.0/envs/default.env similarity index 100% rename from apps/openpanel/25.6.5.41-alpine/envs/default.env rename to apps/mx-space-db/8.4.0/envs/default.env diff --git a/apps/openpanel/25.6.5.41-alpine/envs/global.env b/apps/mx-space-db/8.4.0/envs/global.env similarity index 100% rename from apps/openpanel/25.6.5.41-alpine/envs/global.env rename to apps/mx-space-db/8.4.0/envs/global.env diff --git a/apps/openpanel/25.6.5.41-alpine/scripts/upgrade.sh b/apps/mx-space-db/8.4.0/scripts/init.sh similarity index 100% rename from apps/openpanel/25.6.5.41-alpine/scripts/upgrade.sh rename to apps/mx-space-db/8.4.0/scripts/init.sh diff --git a/apps/openpanel/25.6.5.41-alpine/scripts/uninstall.sh b/apps/mx-space-db/8.4.0/scripts/uninstall.sh similarity index 100% rename from apps/openpanel/25.6.5.41-alpine/scripts/uninstall.sh rename to apps/mx-space-db/8.4.0/scripts/uninstall.sh diff --git a/apps/openpanel/25.6.5.41-alpine/scripts/init.sh b/apps/mx-space-db/8.4.0/scripts/upgrade.sh similarity index 67% rename from apps/openpanel/25.6.5.41-alpine/scripts/init.sh rename to apps/mx-space-db/8.4.0/scripts/upgrade.sh index 80c647873..07fb8c3fe 100644 --- a/apps/openpanel/25.6.5.41-alpine/scripts/init.sh +++ b/apps/mx-space-db/8.4.0/scripts/upgrade.sh @@ -10,11 +10,6 @@ if [ -f .env ]; then echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env echo "GLOBAL_ENV_FILE=${CURRENT_DIR}/envs/global.env" >> .env - if [ ! -d $CLICKHOUSE_SERVER_ROOT_PATH/config ]; then - mkdir -p $CLICKHOUSE_SERVER_ROOT_PATH/config - fi - cp -rn ./config/* $CLICKHOUSE_SERVER_ROOT_PATH/config/ - echo "Check Finish." else diff --git a/apps/mx-space-db/README.md b/apps/mx-space-db/README.md new file mode 100644 index 000000000..161009bf2 --- /dev/null +++ b/apps/mx-space-db/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-db/data.yml b/apps/mx-space-db/data.yml new file mode 100644 index 000000000..c725709df --- /dev/null +++ b/apps/mx-space-db/data.yml @@ -0,0 +1,14 @@ +additionalProperties: + key: mx-space-db + name: MixSpace (内置MongoDB) + 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-db/logo.png b/apps/mx-space-db/logo.png new file mode 100644 index 000000000..32194a511 Binary files /dev/null and b/apps/mx-space-db/logo.png differ diff --git a/apps/openpanel/25.6.5.41-alpine/config/clickhouse-config.xml b/apps/openpanel/25.6.5.41-alpine/config/clickhouse-config.xml deleted file mode 100644 index 659577864..000000000 --- a/apps/openpanel/25.6.5.41-alpine/config/clickhouse-config.xml +++ /dev/null @@ -1,29 +0,0 @@ - - - warning - true - - - 10 - - - - - - - - - - - - 0.0.0.0 - 0.0.0.0 - op-ch - - - - 1 - replica1 - openpanel_cluster - - diff --git a/apps/openpanel/25.6.5.41-alpine/config/clickhouse-user-config.xml b/apps/openpanel/25.6.5.41-alpine/config/clickhouse-user-config.xml deleted file mode 100644 index ae6a6b948..000000000 --- a/apps/openpanel/25.6.5.41-alpine/config/clickhouse-user-config.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - 0 - 0 - - - \ No newline at end of file diff --git a/apps/openpanel/25.6.5.41-alpine/config/init-db.sh b/apps/openpanel/25.6.5.41-alpine/config/init-db.sh deleted file mode 100644 index e86d8af32..000000000 --- a/apps/openpanel/25.6.5.41-alpine/config/init-db.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/bash -set -e - -clickhouse client -n <<-EOSQL - CREATE DATABASE IF NOT EXISTS openpanel; -EOSQL \ No newline at end of file diff --git a/apps/openpanel/25.6.5.41-alpine/data.yml b/apps/openpanel/25.6.5.41-alpine/data.yml deleted file mode 100644 index 23c435d68..000000000 --- a/apps/openpanel/25.6.5.41-alpine/data.yml +++ /dev/null @@ -1,148 +0,0 @@ -additionalProperties: - formFields: - - child: - default: "" - envKey: PANEL_POSTGRES_SERVICE - required: true - type: service - default: postgresql - envKey: PANEL_POSTGRES_TYPE - labelZh: Postgres 服务 (前置检查) - labelEn: Postgres Service (Pre-check) - required: false - type: apps - values: - - label: PostgreSQL - value: postgresql - - child: - default: "" - envKey: PANEL_REDIS_SERVICE - required: true - type: service - default: redis - envKey: PANEL_REDIS_TYPE - labelZh: Redis 服务 (前置检查) - labelEn: Redis Service (Pre-check) - required: true - type: apps - values: - - label: Redis - value: redis - - default: "/home/clickhouse-server" - edit: true - envKey: CLICKHOUSE_SERVER_ROOT_PATH - labelZh: 数据持久化路径 - labelEn: Data persistence path - required: true - type: text - - default: 8123 - edit: true - envKey: PANEL_APP_PORT_HTTP - labelZh: WebUI 端口 - labelEn: WebUI port - required: true - rule: paramPort - type: number - - default: 9000 - edit: true - envKey: PANEL_APP_PORT_NATIVE_TCP - labelZh: Native/TCP 通讯端口 - labelEn: Native/TCP interface - required: true - rule: paramPort - type: number - - default: 9009 - edit: true - envKey: PANEL_APP_PORT_INTER_SERVER - labelZh: 服务器通信端口 - labelEn: Inter-server communication - required: true - rule: paramPort - type: number - - default: "http://127.0.0.1:8123/openpanel" - edit: true - envKey: CLICKHOUSE_URL - labelZh: ClickHouse 访问地址 - labelEn: ClickHouse URL - required: true - type: text - - default: "redis://127.0.0.1:6379" - edit: true - envKey: REDIS_URL - labelZh: Redis 地址 - labelEn: Redis Url - required: true - type: text - - default: "postgresql://postgres_user:postgres_pass@127.0.0.1:5432/postgres_db_name?schema=public" - edit: true - envKey: DATABASE_URL - labelZh: Redis 地址 - labelEn: Redis Url - required: true - type: text - - default: "false" - edit: true - envKey: ALLOW_REGISTRATION - labelZh: 开放注册 - labelEn: Open Registration - required: true - type: select - values: - - label: 允许注册 - value: "true" - - label: 禁止注册 - value: "false" - - default: "false" - edit: true - envKey: ALLOW_INVITATION - labelZh: 开放邀请 - labelEn: Open Invitation - required: true - type: select - values: - - label: 允许邀请 - value: "true" - - label: 禁止邀请 - value: "false" - - default: "" - edit: true - envKey: RESEND_API_KEY - labelZh: 邮件发送 (Resend) API KEY - labelEn: Email (Resend) Send API KEY - required: false - type: text - - default: "" - edit: true - envKey: EMAIL_SENDER - labelZh: 邮件发送者地址 - labelEn: Email Sender Address - required: false - type: text - - default: "" - edit: true - envKey: GITHUB_CLIENT_ID - labelZh: Github 客户端 ID (OAuth2) - labelEn: Github Client ID (OAuth2) - required: false - type: text - - default: "" - edit: true - envKey: GITHUB_CLIENT_SECRET - labelZh: Github 客户端密钥 (OAuth2) - labelEn: Github Client Secret (OAuth2) - required: false - type: text - - default: "" - edit: true - envKey: GOOGLE_CLIENT_ID - labelZh: Google 客户端 ID (OAuth2) - labelEn: Google Client ID (OAuth2) - required: false - type: text - - default: "" - edit: true - envKey: GOOGLE_CLIENT_SECRET - labelZh: Google 客户端密钥 (OAuth2) - labelEn: Google Client Secret (OAuth2) - required: false - type: text diff --git a/apps/openpanel/25.6.5.41-alpine/docker-compose.yml b/apps/openpanel/25.6.5.41-alpine/docker-compose.yml deleted file mode 100644 index 92fed07f5..000000000 --- a/apps/openpanel/25.6.5.41-alpine/docker-compose.yml +++ /dev/null @@ -1,42 +0,0 @@ -networks: - 1panel-network: - external: true - -services: - clickhouse-server: - image: clickhouse/clickhouse-server:25.6.5.41-alpine - container_name: ${CONTAINER_NAME} - labels: - createdBy: "Apps" - restart: always - networks: - - 1panel-network - ulimits: - nofile: - soft: 262144 - hard: 262144 - ports: - - ${PANEL_APP_PORT_HTTP}:8123 - - ${PANEL_APP_PORT_NATIVE_TCP}:9000 - - ${PANEL_APP_PORT_INTER_SERVER}:9009 - env_file: - - ${GLOBAL_ENV_FILE:-/etc/1panel/envs/global.env} - - ${ENV_FILE:-/etc/1panel/envs/default.env} - volumes: - - ${CLICKHOUSE_SERVER_ROOT_PATH}/data:/var/lib/clickhouse - - ${CLICKHOUSE_SERVER_ROOT_PATH}/logs:/var/log/clickhouse-server - - ${CLICKHOUSE_SERVER_ROOT_PATH}/config/op-config.xml:/etc/clickhouse-server/config.d/op-config.xml - - ${CLICKHOUSE_SERVER_ROOT_PATH}/config/op-user-config.xml:/etc/clickhouse-server/users.d/op-user-config.xml - - ${CLICKHOUSE_SERVER_ROOT_PATH}/config/init-db.sh:/docker-entrypoint-initdb.d/init-db.sh - environment: - - TZ=Asia/Shanghai - - DATABASE_URL_DIRECT=${DATABASE_URL} - - BATCH_SIZE=5000 - - BATCH_INTERVAL=10000 - - CONCURRENCY=10 - - WORKER_PORT=9999 - - API_PORT=3333 - - NEXT_PUBLIC_API_URL="http://localhost:3333" - - NEXT_PUBLIC_DASHBOARD_URL="http://localhost:3000" - - GITHUB_REDIRECT_URI=https://openpanel.domain.com/api/oauth/github/callback - - GOOGLE_REDIRECT_URI=https://openpanel.domain.com/api/oauth/google/callback diff --git a/apps/openpanel/README.md b/apps/openpanel/README.md deleted file mode 100644 index c18c4d704..000000000 --- a/apps/openpanel/README.md +++ /dev/null @@ -1,50 +0,0 @@ -# Openpanel - -Openpanel 是一个开源网络和产品分析平台,它结合了 Mixpanel 的强大功能和 Plausible 的易用性,是最好的 Google Analytics -替代品之一。 - -![Openpanel](https://file.lifebus.top/imgs/openpanel_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) - -## 特性 - -### 网络分析 - -+ 实时数据 :实时查看访客活动 -+ 流量来源 :了解访客来自哪里 -+ 地理洞察 :追踪访客位置和趋势 -+ 设备分析 :监控不同设备的使用情况 -+ 页面性能 :分析访问量最大的页面 - -### 产品分析 - -+ 事件跟踪 :监控用户操作和交互 -+ 用户资料 :建立详细的用户旅程洞察 -+ 漏斗 :分析转化路径 -+ 留存率 :跟踪用户参与度 -+ 自定义属性 :为事件添加上下文 - -## 快速开始 SDK - -### 脚本标签 - -```html - - - -``` - ---- - -![Ms Studio](https://file.lifebus.top/imgs/ms_blank_001.png) diff --git a/apps/openpanel/data.yml b/apps/openpanel/data.yml deleted file mode 100644 index ecb0a43fb..000000000 --- a/apps/openpanel/data.yml +++ /dev/null @@ -1,14 +0,0 @@ -additionalProperties: - key: openpanel - name: Openpanel - tags: - - WebSite - - Local - shortDescZh: 开源网络和产品分析平台 - shortDescEn: An open source network and product analysis platform - type: website - crossVersionUpdate: true - limit: 0 - website: https://openpanel.dev/ - github: https://github.com/Openpanel-dev/openpanel/ - document: https://openpanel.dev/ diff --git a/apps/openpanel/logo.png b/apps/openpanel/logo.png deleted file mode 100644 index 827e9529e..000000000 Binary files a/apps/openpanel/logo.png and /dev/null differ