mirror of
https://github.com/QYG2297248353/appstore-1panel.git
synced 2025-02-03 00:07:59 +08:00
发布应用 NodeBB
Signed-off-by: Meng Sen <qyg2297248353@gmail.com>
This commit is contained in:
parent
1e57f31fc0
commit
32212e9e9b
91
apps/nodebb/3.12.2/data.yml
Normal file
91
apps/nodebb/3.12.2/data.yml
Normal file
@ -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
apps/nodebb/3.12.2/docker-compose.yml
Normal file
26
apps/nodebb/3.12.2/docker-compose.yml
Normal file
@ -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
apps/nodebb/3.12.2/envs/default.env
Normal file
2
apps/nodebb/3.12.2/envs/default.env
Normal file
@ -0,0 +1,2 @@
|
||||
# copyright© 2024 XinJiang Ms Studio
|
||||
ENV_FILE=.env
|
2
apps/nodebb/3.12.2/envs/global.env
Normal file
2
apps/nodebb/3.12.2/envs/global.env
Normal file
@ -0,0 +1,2 @@
|
||||
# copyright© 2024 XinJiang Ms Studio
|
||||
TZ=Asia/Shanghai
|
17
apps/nodebb/3.12.2/scripts/init.sh
Normal file
17
apps/nodebb/3.12.2/scripts/init.sh
Normal file
@ -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
apps/nodebb/3.12.2/scripts/uninstall.sh
Normal file
10
apps/nodebb/3.12.2/scripts/uninstall.sh
Normal file
@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -f .env ]; then
|
||||
source .env
|
||||
|
||||
echo "Check Finish."
|
||||
|
||||
else
|
||||
echo "Error: .env file not found."
|
||||
fi
|
17
apps/nodebb/3.12.2/scripts/upgrade.sh
Normal file
17
apps/nodebb/3.12.2/scripts/upgrade.sh
Normal file
@ -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
apps/nodebb/README.md
Normal file
16
apps/nodebb/README.md
Normal file
@ -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
apps/nodebb/data.yml
Normal file
14
apps/nodebb/data.yml
Normal file
@ -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/
|
BIN
apps/nodebb/logo.png
Normal file
BIN
apps/nodebb/logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 16 KiB |
@ -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/
|
||||
|
Loading…
x
Reference in New Issue
Block a user