Skip to content

Commit

Permalink
发布应用 NodeBB
Browse files Browse the repository at this point in the history
Signed-off-by: Meng Sen <[email protected]>
  • Loading branch information
QYG2297248353 committed Jan 9, 2025
1 parent 1e57f31 commit 32212e9
Show file tree
Hide file tree
Showing 11 changed files with 196 additions and 1 deletion.
91 changes: 91 additions & 0 deletions apps/nodebb/3.12.2/data.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
additionalProperties:
formFields:
- default: "/home/nodebb"
edit: true
envKey: NODEBB_ROOT_PATH
labelZh: 数据持久化路径
labelEn: Data persistence path
required: true
type: text
- default: 4567
edit: true
envKey: PANEL_APP_PORT_HTTP
labelZh: WebUI 端口
labelEn: WebUI port
required: true
rule: paramPort
type: number
- default: ""
edit: true
envKey: NODEBB_ADMIN_EMAIL
labelZh: 管理员邮箱
labelEn: Admin email
required: true
type: text
- default: ""
edit: true
envKey: NODEBB_ADMIN_USERNAME
labelZh: 管理员用户名
labelEn: Admin username
required: true
type: text
- default: ""
edit: true
envKey: NODEBB_ADMIN_PASSWORD
labelZh: 管理员密码
labelEn: Admin password
required: true
type: text
- default: "postgres"
edit: true
envKey: NODEBB_DB
labelZh: 数据库类型
labelEn: Database type
required: true
type: select
values:
- label: PostgreSQL
value: "postgres"
- label: Redis
value: "redis"
- label: MongoDB
value: "mongo"
- default: "127.0.0.1"
edit: true
envKey: NODEBB_DB_HOST
labelZh: 数据库 主机地址
labelEn: Database Host
required: true
type: text
- default: 5432
edit: true
envKey: NODEBB_DB_PORT
labelZh: 数据库 端口
labelEn: Database Port
required: true
rule: paramPort
type: number
- default: "nodebb"
edit: true
envKey: NODEBB_DB_NAME
labelZh: 数据库 名称
labelEn: Database Name
required: true
rule: paramCommon
type: text
- default: "nodebb"
edit: true
envKey: NODEBB_DB_USER
labelZh: 数据库 用户名
labelEn: Database Username
required: true
type: text
- default: ""
edit: true
envKey: NODEBB_DB_PASSWORD
labelZh: 数据库 密码
labelEn: Database Password
random: true
required: true
rule: paramComplexity
type: password
26 changes: 26 additions & 0 deletions apps/nodebb/3.12.2/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
networks:
1panel-network:
external: true

services:
nodebb:
image: ghcr.io/nodebb/nodebb:3.12.2
container_name: ${CONTAINER_NAME}
labels:
createdBy: "Apps"
restart: always
networks:
- 1panel-network
ports:
- ${PANEL_APP_PORT_HTTP}:4567
env_file:
- ${GLOBAL_ENV_FILE:-/etc/1panel/envs/global.env}
- ${ENV_FILE:-/etc/1panel/envs/default.env}
volumes:
- ${NODEBB_ROOT_PATH}/build:/usr/src/app/build
- ${NODEBB_ROOT_PATH}/uploads:/usr/src/app/public/uploads
- ${NODEBB_ROOT_PATH}/config:/opt/config
environment:
- TZ=Asia/Shanghai
- NODEBB_PORT=4567
- NODEBB_URL=http://127.0.0.1:4567
2 changes: 2 additions & 0 deletions apps/nodebb/3.12.2/envs/default.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# copyright© 2024 XinJiang Ms Studio
ENV_FILE=.env
2 changes: 2 additions & 0 deletions apps/nodebb/3.12.2/envs/global.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# copyright© 2024 XinJiang Ms Studio
TZ=Asia/Shanghai
17 changes: 17 additions & 0 deletions apps/nodebb/3.12.2/scripts/init.sh
Original file line number Diff line number Diff line change
@@ -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
10 changes: 10 additions & 0 deletions apps/nodebb/3.12.2/scripts/uninstall.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

if [ -f .env ]; then
source .env

echo "Check Finish."

else
echo "Error: .env file not found."
fi
17 changes: 17 additions & 0 deletions apps/nodebb/3.12.2/scripts/upgrade.sh
Original file line number Diff line number Diff line change
@@ -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
16 changes: 16 additions & 0 deletions apps/nodebb/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# NodeBB

一个更适合现代网络的社会平台

![NodeBB](https://file.lifebus.top/imgs/nodebb_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)

## 简介

《NodeBB》是一个下一代讨论平台,它利用 WebSockets 实现即时交互和实时通知。
NodeBB 论坛自带许多现代功能,如社交网络集成和流式讨论,以及完整的 REST API 和插件框架,以实现第三方完全扩展。

---

![Ms Studio](https://file.lifebus.top/imgs/ms_blank_001.png)
14 changes: 14 additions & 0 deletions apps/nodebb/data.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
additionalProperties:
key: nodebb
name: NodeBB
tags:
- WebSite
- Local
shortDescZh: 一个更适合现代网络的社会平台
shortDescEn: A modern forum platform better suited for the modern web
type: website
crossVersionUpdate: true
limit: 0
website: https://nodebb.org/
github: https://github.com/NodeBB/NodeBB/
document: https://docs.nodebb.org/
Binary file added apps/nodebb/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion apps/weblate/data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ additionalProperties:
crossVersionUpdate: true
limit: 0
website: https://weblate.org/
github: https://weblate.org/
github: https://github.com/WeblateOrg/weblate/
document: https://docs.weblate.org/

0 comments on commit 32212e9

Please sign in to comment.