forked from 1Panel-dev/appstore
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Meng Sen <[email protected]>
- Loading branch information
1 parent
1e57f31
commit 32212e9
Showing
11 changed files
with
196 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# copyright© 2024 XinJiang Ms Studio | ||
ENV_FILE=.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# copyright© 2024 XinJiang Ms Studio | ||
TZ=Asia/Shanghai |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/ |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters