Merge branch 'pr-949' into localApps

This commit is contained in:
okxlin 2024-03-14 13:32:17 +08:00
commit 935ee0cba0
10 changed files with 208 additions and 0 deletions

37
apps/mixspace/5/data.yml Normal file
View File

@ -0,0 +1,37 @@
additionalProperties:
formFields:
- default: 2333
edit: true
envKey: PANEL_APP_PORT_HTTP
labelEn: Port
labelZh: 应用端口
required: true
rule: paramPort
type: number
- default: example.com
envKey: ALLOWED_ORIGINS
labelEn: Allowed_Origins
labelZh: 允许域名前端绑定域名不需要https://,多个使用英文逗号分割)
required: true
type: text
- default: Np2qgqtiUayA857
envKey: JWT_SECRET
labelEn: Password
labelZh: JWT密钥16到32位字符请一定修改至要求
random: true
required: true
rule: paramComplexity
type: password
- default:
envKey: ENCRYPT_KEY
labelEn: ENCRYPT_KEY
labelZh: 加密密钥(非特殊需求不建议填写)
required: false
rule: paramCommon
type: password
- default:
envKey: ENCRYPT_ENABLE
labelEn: ENCRYPT_ENABLE
labelZh: 是否开启加密true或false需要填写加密密钥
required: false
type: text

View File

@ -0,0 +1,55 @@
version: '3.8'
services:
app:
container_name: ${CONTAINER_NAME}
image: innei/mx-server:5
command: bash ./docker-run.sh
environment:
- TZ=Asia/Shanghai
- NODE_ENV=production
- ALLOWED_ORIGINS=${ALLOWED_ORIGINS}
- JWT_SECRET=${JWT_SECRET}
- ENCRYPT_KEY=${ENCRYPT_KEY}
- ENCRYPT_ENABLE=${ENCRYPT_ENABLE}
volumes:
- ./data/mx-space:/root/.mx-space
ports:
- '${PANEL_APP_PORT_HTTP}:2333'
depends_on:
- mongo
- redis
links:
- mongo
- redis
networks:
- 1panel-network
restart: always
healthcheck:
test: ['CMD', 'curl', '-f', 'http://127.0.0.1:2333/api/v2/ping']
interval: 1m30s
timeout: 30s
retries: 5
start_period: 30s
labels:
createdBy: "Apps"
mongo:
container_name: mongo
image: mongo
volumes:
- ./data/db:/data/db
networks:
- 1panel-network
restart: always
redis:
image: redis
container_name: redis
networks:
- 1panel-network
restart: always
networks:
1panel-network:
external: true

20
apps/mixspace/README.md Normal file
View File

@ -0,0 +1,20 @@
# MixSpace
Mix Space 是一个一款简洁而不简单的个人博客系统,它够快,够现代。你可以利用它构建一个属于自己的个人空间,记录生活,分享知识。
## 注意事项
在此处你安装的是Mix-Space的后端你还需要参照官方文档中的[前端主题](https://mx-space.js.org/themes
)部分完成前端部署
## 主要功能:
- 支持文本宏Markdown与GFM语法
- 集成个人日记与内置反垃圾评论系统
- xLog集成可把文章同步到去中心化平台并使用其AI摘要
- 内建文件管理与多种通知方式
- 支持自助申请友链并可一键检查其可用性
- 通过计划任务实现包括备份与推送百度在内多种目的
- 支持从 Markdown 导入文章,也支持导出文章为 Markdown
- 动态化配置前端,你可以在后台设置前端的配置
- 项目展示功能,你可以向访客展示你的项目,展现你的技术能力

19
apps/mixspace/data.yml Normal file
View File

@ -0,0 +1,19 @@
name: MixSpace
tags:
- 建站
title: 开源自部署个人前后端分离博客系统
type: 建站
description: 开源自部署个人前后端分离博客系统
additionalProperties:
key: mixspace
name: MixSpace
tags:
- WebSite
shortDescZh: 开源自部署个人前后端分离博客系统
shortDescEn: Open source self-deployed personal front-end and back-end separation blogging system
type: website
crossVersionUpdate: true
limit: 0
website: https://mx-space.js.org
github: https://github.com/mx-space/core
document: https://mx-space.js.org/docs

BIN
apps/mixspace/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.2 KiB

19
apps/nodebb/README.md Normal file
View File

@ -0,0 +1,19 @@
# 介绍
NodeBB 是一款由Node.js开发的、开源的、现代化的论坛程序
## 所使用docker镜像相关:
> 项目链接
>> - https://hub.docker.com/r/elestio/nodebb
>> - https://github.com/elestio-examples/nodebb
## 数据库连接问题
需要新建数据库再进行安装
本机`PostgreSQL`数据库连接信息,具体查看面板数据库页面来获取,例如
```
PostgreSQL:5432
```

19
apps/nodebb/data.yml Normal file
View File

@ -0,0 +1,19 @@
name: NodeBB
tags:
- 建站
title: 基于Node.js的现代化论坛程序
type: 建站
description: 基于Node.js的现代化论坛程序
additionalProperties:
key: nodebb
name: nodebb
tags:
- WebSite
shortDescZh: 基于Node.js的现代化论坛程序
shortDescEn: Open source Forum Powered by Node.js
type: website
crossVersionUpdate: true
limit: 0
website: https://nodebb.org/
github: https://github.com/NodeBB/NodeBB
document: https://docs.nodebb.org/

View File

@ -0,0 +1,17 @@
additionalProperties:
formFields:
- default: 4567
edit: true
envKey: PANEL_APP_PORT_HTTP
labelEn: Port
labelZh: 应用端口
required: true
rule: paramPort
type: number
- default: example.com
envKey: DOMAIN
labelEn: Allowed_Origins
labelZh: 绑定域名
required: true
rule: paramExtUrl
type: text

View File

@ -0,0 +1,22 @@
version: "3.3"
services:
nodebb:
container_name: ${CONTAINER_NAME}
ports:
- "${PANEL_APP_PORT_HTTP}:4567"
user: 0:0
image: elestio/nodebb:latest
restart: always
networks:
- 1panel-network
environment:
URL: "https://${DOMAIN}"
volumes:
- ./nodebb-files:/usr/src/app/public/uploads
# - ./nodebb-config/config.json:/usr/src/app/config.json
- ./entrypoint.sh:/usr/src/app/entrypoint.sh
networks:
1panel-network:
external: true

BIN
apps/nodebb/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB