mirror of
https://github.com/pooneyy/1Panel-Appstore.git
synced 2026-03-18 01:01:02 +08:00
✨ feat(docmost): add comprehensive configuration and update app structure
- add new config.env file with detailed environment variables for app, storage, email, and telemetry settings - expand data.yml form fields with multi-language support, database, and redis service configurations - refactor docker-compose.yml to use 1panel network, environment variables, and config.env file - add init.sh script for generating APP_SECRET - update README files with detailed configuration instructions and feature descriptions - enhance data.yml metadata with multi-language descriptions and architecture support - update application logo
This commit is contained in:
parent
3ce6445f92
commit
b466db7662
59
apps/docmost/0.24.1/config.env
Normal file
59
apps/docmost/0.24.1/config.env
Normal file
@ -0,0 +1,59 @@
|
||||
################### 应用程序配置 ###################
|
||||
|
||||
# 应用程序的基本 URL。它是可选的,但对于在电子邮件中显示正确的链接很有用。
|
||||
# APP_URL=https://docmost.example.com
|
||||
|
||||
# JWT 的过期时间。默认为 30 天。
|
||||
JWT_TOKEN_EXPIRES_IN=30d
|
||||
|
||||
##################### 存储配置 #####################
|
||||
|
||||
# 存储驱动。默认为 local。 local|s3
|
||||
# STORAGE_DRIVER=local
|
||||
|
||||
# AWS S3 访问密钥 ID
|
||||
# AWS_S3_ACCESS_KEY_ID=
|
||||
|
||||
# AWS S3 秘密访问密钥
|
||||
# AWS_S3_SECRET_ACCESS_KEY=
|
||||
|
||||
# AWS S3 存储桶所在区域
|
||||
# AWS_S3_REGION=
|
||||
|
||||
# AWS S3 存储桶名称
|
||||
# AWS_S3_BUCKET=
|
||||
|
||||
# AWS S3 服务端点 URL(可选)。如果使用第三方 S3 兼容存储,请设置此值。
|
||||
# AWS_S3_ENDPOINT=
|
||||
|
||||
# AWS S3 强制请求使用路径式寻址(可选) true|false
|
||||
# AWS_S3_FORCE_PATH_STYLE=
|
||||
|
||||
################## 存储文件上传限制 ##################
|
||||
|
||||
# 每次上传的最大文件大小。默认为 50MB
|
||||
# FILE_UPLOAD_SIZE_LIMIT=50mb
|
||||
|
||||
# 最大文件导入大小限制。默认为 200MB。
|
||||
# FILE_IMPORT_SIZE_LIMIT=200mb
|
||||
|
||||
##################### 邮件配置 #####################
|
||||
# 添加新用户需要配置 SMTP
|
||||
|
||||
# MAIL_DRIVER=smtp
|
||||
# SMTP_HOST=
|
||||
# SMTP_PORT=
|
||||
# SMTP_USERNAME=
|
||||
# SMTP_PASSWORD=
|
||||
# SMTP_SECURE=
|
||||
# MAIL_FROM_ADDRESS=
|
||||
# MAIL_FROM_NAME=
|
||||
|
||||
############ DRAW.IO(Diagrams.net)配置 ############
|
||||
|
||||
DRAWIO_URL=https://embed.diagrams.net
|
||||
|
||||
###################### 遥测 #######################
|
||||
|
||||
# 是否禁用遥测 true|false
|
||||
DISABLE_TELEMETRY=true
|
||||
@ -1,25 +1,135 @@
|
||||
additionalProperties:
|
||||
formFields:
|
||||
- default: 30049
|
||||
edit: true
|
||||
- default: 8080
|
||||
envKey: PANEL_APP_PORT_HTTP
|
||||
labelEn: Port
|
||||
labelZh: 端口
|
||||
labelZh: HTTP 端口
|
||||
labelEn: HTTP Port
|
||||
label:
|
||||
en: Port
|
||||
zh: 端口
|
||||
zh: HTTP 端口
|
||||
zh-Hant: HTTP 連接埠
|
||||
en: HTTP Port
|
||||
ja: HTTP ポート
|
||||
ko: HTTP 포트
|
||||
ms: Port HTTP
|
||||
pt-br: Porta HTTP
|
||||
ru: HTTP Порт
|
||||
tr: HTTP Portu
|
||||
description:
|
||||
zh: "设置应用的 HTTP 访问端口,有效范围: 1-65535"
|
||||
zh-Hant: "設定應用程式的 HTTP 存取連接埠,有效範圍: 1-65535"
|
||||
en: "Set the HTTP access port for the application, valid range: 1-65535"
|
||||
ja: "アプリケーションのHTTPアクセスポートを設定します。有効範囲: 1-65535"
|
||||
ko: "애플리케이션의 HTTP 접근 포트를 설정합니다. 유효 범위: 1-65535"
|
||||
ms: "Tetapkan port akses HTTP untuk aplikasi, julat sah: 1-65535"
|
||||
pt-br: "Defina a porta de acesso HTTP para o aplicativo, intervalo válido: 1-65535"
|
||||
ru: "Установите порт доступа HTTP для приложения, допустимый диапазон: 1-65535"
|
||||
tr: "Uygulama için HTTP erişim portunu ayarlayın, geçerli aralık: 1-65535"
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: ""
|
||||
edit: true
|
||||
rule: paramPort
|
||||
- default: ""
|
||||
envKey: PANEL_DB_HOST
|
||||
labelZh: 数据库
|
||||
labelEn: Database
|
||||
label:
|
||||
en: Database
|
||||
ja: データベース
|
||||
ko: 데이터베이스
|
||||
ms: Pangkalan Data
|
||||
pt-br: Banco de Dados
|
||||
ru: База данных
|
||||
tr: Veritabanı
|
||||
zh: 数据库
|
||||
zh-Hant: 資料庫
|
||||
required: true
|
||||
type: service
|
||||
key: postgresql
|
||||
- default: docmost_db_user
|
||||
envKey: PANEL_DB_USER
|
||||
labelZh: 数据库用户名
|
||||
labelEn: Database Username
|
||||
label:
|
||||
en: Database Username
|
||||
ja: データベースユーザー名
|
||||
ko: 데이터베이스 사용자 이름
|
||||
ms: Nama Pengguna Pangkalan Data
|
||||
pt-br: Nome de Usuário do Banco de Dados
|
||||
ru: Имя пользователя базы данных
|
||||
tr: Veritabanı Kullanıcı Adı
|
||||
zh: 数据库用户名
|
||||
zh-Hant: 資料庫使用者名稱
|
||||
required: true
|
||||
type: text
|
||||
rule: paramCommon
|
||||
random: true
|
||||
- default: docmost_db_pass
|
||||
envKey: PANEL_DB_USER_PASSWORD
|
||||
labelZh: 数据库密码
|
||||
labelEn: Database Password
|
||||
labelZh: 数据库用户密码
|
||||
label:
|
||||
en: Database Password
|
||||
zh: 数据库用户密码
|
||||
random: true
|
||||
ja: データベースパスワード
|
||||
ko: 데이터베이스 비밀번호
|
||||
ms: Kata Laluan Pangkalan Data
|
||||
pt-br: Senha do Banco de Dados
|
||||
ru: Пароль базы данных
|
||||
tr: Veritabanı Parolası
|
||||
zh: 数据库密码
|
||||
zh-Hant: 資料庫密碼
|
||||
required: true
|
||||
rule: paramComplexity
|
||||
type: password
|
||||
rule: paramComplexity
|
||||
random: true
|
||||
- default: docmost_db_name
|
||||
envKey: PANEL_DB_NAME
|
||||
labelZh: 数据库名
|
||||
labelEn: Database Name
|
||||
label:
|
||||
en: Database Name
|
||||
ja: データベース名
|
||||
ko: 데이터베이스 이름
|
||||
ms: Nama Pangkalan Data
|
||||
pt-br: Nome do Banco de Dados
|
||||
ru: Имя базы данных
|
||||
tr: Veritabanı Adı
|
||||
zh: 数据库名
|
||||
zh-Hant: 資料庫名稱
|
||||
required: true
|
||||
type: text
|
||||
rule: paramCommon
|
||||
random: true
|
||||
- default: ""
|
||||
envKey: PANEL_REDIS_HOST
|
||||
labelZh: Redis 服务
|
||||
labelEn: Redis Service
|
||||
label:
|
||||
en: Redis Service
|
||||
ja: Redisサービス
|
||||
ko: Redis 서비스
|
||||
ms: Perkhidmatan Redis
|
||||
pt-br: Serviço Redis
|
||||
ru: Сервис Redis
|
||||
tr: Redis Hizmeti
|
||||
zh: Redis 服务
|
||||
zh-Hant: Redis 服務
|
||||
required: true
|
||||
type: service
|
||||
key: redis
|
||||
- default: ""
|
||||
envKey: PANEL_REDIS_ROOT_PASSWORD
|
||||
labelZh: Redis 服务密码
|
||||
labelEn: Redis Service Password
|
||||
label:
|
||||
en: Redis Service Password
|
||||
ja: Redis サービスパスワード
|
||||
ko: Redis 서비스 비밀번호
|
||||
ms: Kata Laluan Perkhidmatan Redis
|
||||
pt-br: Senha do Serviço Redis
|
||||
ru: Пароль службы Redis
|
||||
tr: Redis Hizmet Parolası
|
||||
zh: Redis 服务密码
|
||||
zh-Hant: Redis 服務密碼
|
||||
required: true
|
||||
type: password
|
||||
rule: paramComplexity
|
||||
|
||||
@ -1,38 +1,22 @@
|
||||
services:
|
||||
docmost:
|
||||
container_name: ${CONTAINER_NAME}
|
||||
restart: always
|
||||
ports:
|
||||
- "${PANEL_APP_PORT_HTTP}:3000"
|
||||
volumes:
|
||||
- docmost:/app/data/storage
|
||||
environment:
|
||||
APP_URL: "http://localhost:3000"
|
||||
APP_SECRET: "52f235dee223c92a83a934ada13b83075c9855fe966b3cbf9dd86810e2b742ee"
|
||||
DATABASE_URL: "postgresql://docmost:${PANEL_DB_USER_PASSWORD}@db:5432/docmost?schema=public"
|
||||
REDIS_URL: "redis://redis:6379"
|
||||
image: docmost/docmost:0.24.1
|
||||
labels:
|
||||
createdBy: "Apps"
|
||||
depends_on:
|
||||
- db
|
||||
- redis
|
||||
db:
|
||||
image: postgres:16-alpine
|
||||
environment:
|
||||
POSTGRES_DB: docmost
|
||||
POSTGRES_USER: docmost
|
||||
POSTGRES_PASSWORD: ${PANEL_DB_USER_PASSWORD}
|
||||
restart: always
|
||||
APP_URL: http://localhost:3000
|
||||
APP_SECRET: ${APP_SECRET}
|
||||
DATABASE_URL: postgres://${PANEL_DB_USER}:${PANEL_DB_USER_PASSWORD}@${PANEL_DB_HOST}:${PANEL_DB_PORT}/${PANEL_DB_NAME}?schema=public
|
||||
REDIS_URL: redis://default:${PANEL_REDIS_ROOT_PASSWORD}@${PANEL_REDIS_HOST}:6379
|
||||
env_file:
|
||||
- config.env
|
||||
ports:
|
||||
- ${PANEL_APP_PORT_HTTP}:3000
|
||||
volumes:
|
||||
- db_data:/var/lib/postgresql/data
|
||||
|
||||
redis:
|
||||
image: redis:7.2-alpine
|
||||
restart: always
|
||||
volumes:
|
||||
- redis_data:/data
|
||||
volumes:
|
||||
docmost:
|
||||
db_data:
|
||||
redis_data:
|
||||
- ./data:/app/data/storage
|
||||
container_name: ${CONTAINER_NAME}
|
||||
networks:
|
||||
- 1panel-network
|
||||
labels:
|
||||
createdBy: Apps
|
||||
networks:
|
||||
1panel-network:
|
||||
external: true
|
||||
|
||||
10
apps/docmost/0.24.1/scripts/init.sh
Normal file
10
apps/docmost/0.24.1/scripts/init.sh
Normal file
@ -0,0 +1,10 @@
|
||||
NEW_SECRET=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | head -c 32)
|
||||
if grep -q "APP_SECRET=" .env; then
|
||||
if [[ "$(uname)" == "Darwin" ]]; then
|
||||
sed -i '' "s/APP_SECRET=.*/APP_SECRET=$NEW_SECRET/" .env
|
||||
else
|
||||
sed -i "s/APP_SECRET=.*/APP_SECRET=$NEW_SECRET/" .env
|
||||
fi
|
||||
else
|
||||
echo "APP_SECRET=$NEW_SECRET" >> .env
|
||||
fi
|
||||
@ -1,37 +1,31 @@
|
||||
<div align="center">
|
||||
<h1><b>Docmost</b></h1>
|
||||
<p>
|
||||
开源协作wiki、文档笔记软件.
|
||||
<br />
|
||||
<a href="https://docmost.com"><strong>Website</strong></a> |
|
||||
<a href="https://docmost.com/docs"><strong>Documentation</strong></a>
|
||||
</p>
|
||||
</div>
|
||||
<br />
|
||||
## 配置和使用说明
|
||||
|
||||
> [!提示]
|
||||
> Docmost 目前处于**测试阶段**。我们非常重视您的反馈,我们正在努力推出稳定版本。.
|
||||
安装完成后,你可以通过 `应用安装目录/config.env` 文件配置其它环境变量,请参考[文档](https://docmost.com/docs/self-hosting/environment-variables)了解更多信息。`config.env` 中环境变量的优先级低于安装时填写的配置。
|
||||
|
||||
## 开始使用
|
||||
要开始使用 Docmost,请参阅的[documentation](https://docmost.com/docs).
|
||||
如果你没有多用户需求,可以忽略 `config.env`,多用户协作需求则须完成 `config.env` 中的相关配置后重启应用。
|
||||
|
||||
## 功能特色
|
||||
- 实时协作
|
||||
- 图表(Draw.io、Excalidraw 和 Mermaid)
|
||||
- 空间
|
||||
- 权限管理
|
||||
- 群组
|
||||
- 评论
|
||||
- 页面历史记录
|
||||
- 搜索
|
||||
- 文件附件
|
||||
## 产品介绍
|
||||
|
||||
#### 截图
|
||||
<p align="center">
|
||||
<img alt="home" src="https://docmost.com/screenshots/home.png" width="70%">
|
||||
<img alt="editor" src="https://docmost.com/screenshots/editor.png" width="70%">
|
||||
</p>
|
||||
Docmost,一款开源协作 wiki 与文档软件。专为无缝实时协作而设计,是 Notion 和 Confluence 等产品的开源替代方案。
|
||||
|
||||
### 贡献
|
||||
请查看 [开发文档](https://docmost.com/docs/self-hosting/development)
|
||||
## 主要功能
|
||||
|
||||
- **协作实时编辑器**:实时协作编辑页面。
|
||||
- **图表功能**:内置支持 Draw.io、Excalidraw 与 Mermaid 图表工具。
|
||||
- **空间管理**:按团队、项目或部门组织页面,实现更高效的协作。
|
||||
- **智能搜索(ASK AI)**:直接基于页面内容提问并获取答案。
|
||||
- **公开分享**:您可以将页面公开分享,允许任何拥有链接的人查看。
|
||||
- **权限管理**:通过直观易懂的权限设置,轻松控制内容的访问权限。
|
||||
- **用户组**:通过用户组统一授予权限,操作简便。
|
||||
- **评论功能**:可在页面中添加评论,便于沟通和反馈。
|
||||
- **页面历史**:通过完整的版本历史来追踪修改记录。
|
||||
- **嵌套导航**:您可以通过侧边栏嵌套和重新排序页面。
|
||||
- **搜索功能**:凭借强大的搜索能力,快速找到所需信息。
|
||||
- **文件附件**:将文件附加到页面,便于参考和共享。
|
||||
- **在附件中搜索**:支持在 PDF 和 DOCX 文件附件中搜索内容(企业版功能)
|
||||
- **导入/导出**:您可以便捷地以 Markdown 和 HTML 格式导入与导出页面。
|
||||
- 压缩包导入
|
||||
- Notion 导入
|
||||
- Confluence 导入功能(企业版)
|
||||
- **阅读/编辑偏好模式**:向意外编辑说再见。
|
||||
- **多语言支持**:Docmost 提供超过 10 种语言版本。🇺🇸 🇨🇳 🇫🇷 🇩🇪 🇮🇹 🇯🇵 🇰🇷 🇧🇷 🇷🇺 🇪🇸🇺🇦
|
||||
@ -1,34 +1,31 @@
|
||||
<div align="center">
|
||||
<h1><b>Docmost</b></h1>
|
||||
<p>
|
||||
Open-source collaborative wiki and documentation software.
|
||||
<br />
|
||||
<a href="https://docmost.com"><strong>Website</strong></a> |
|
||||
<a href="https://docmost.com/docs"><strong>Documentation</strong></a>
|
||||
</p>
|
||||
</div>
|
||||
> [!NOTE]
|
||||
> Docmost is currently in **beta**. We value your feedback as we progress towards a stable release.
|
||||
## Configuration and Usage Instructions
|
||||
|
||||
## Getting started
|
||||
To get started with Docmost, please refer to our [documentation](https://docmost.com/docs).
|
||||
After installation, you can configure additional environment variables via the `config.env` file located in the application installation directory. For more information, please refer to the [documentation](https://docmost.com/docs/self-hosting/environment-variables). Environment variables in `config.env` have lower priority than the configuration entered during installation.
|
||||
|
||||
If you don’t have multi-user requirements, you can ignore `config.env`. For multi-user collaboration, you must complete the relevant configuration in `config.env` and restart the application.
|
||||
|
||||
## Introduction
|
||||
|
||||
Docmost, an open-source collaborative wiki and documentation software. Designed for seamless real-time collaboration, it's an open-source alternative to the likes of Notion and Confluence.
|
||||
|
||||
## Features
|
||||
- Real-time collaboration
|
||||
- Diagrams (Draw.io, Excalidraw and Mermaid)
|
||||
- Spaces
|
||||
- Permissions management
|
||||
- Groups
|
||||
- Comments
|
||||
- Page history
|
||||
- Search
|
||||
- File attachment
|
||||
|
||||
#### Screenshots
|
||||
<p align="center">
|
||||
<img alt="home" src="https://docmost.com/screenshots/home.png" width="70%">
|
||||
<img alt="editor" src="https://docmost.com/screenshots/editor.png" width="70%">
|
||||
</p>
|
||||
|
||||
### Contributing
|
||||
See the [development documentation](https://docmost.com/docs/self-hosting/development)
|
||||
- **Collaborative Real-time Editor**: Work together on pages in real-time.
|
||||
- **Diagrams**: Built-in support for Draw.io, Excalidraw and Mermaid diagramming tools.
|
||||
- **Spaces**: Organize your pages by team, projects, or departments for better collaboration.
|
||||
- **AI Search (ASK AI)**: Ask questions and get answers directly from your page content.
|
||||
- **Public sharing**: You can publicly share your pages, allowing anyone with the link to view them.
|
||||
- **Permissions Management**: Easily control access to contents with easy to understand permissions.
|
||||
- **Groups**: Easily grant unified permissions to users via groups.
|
||||
- **Comments**: Add comments to pages for better communication and feedback.
|
||||
- **Page History**: Track changes with a comprehensive version history.
|
||||
- **Nested Navigation**: You can nest and reorder pages via the sidebar.
|
||||
- **Search**: Quickly find the information you need with powerful search capabilities.
|
||||
- **File Attachment**: Attach files to your pages for easy reference and sharing.
|
||||
- **Search in attachments:** Search for content in PDF and DOCX file attachments (Enterprise Edition)
|
||||
- **Import / Export**: You can easily import and export pages in Markdown and HTML formats.
|
||||
- Zip import
|
||||
- Notion import
|
||||
- Confluence import (Enterprise Edition)
|
||||
- **Read/Edit preference mode:** Say goodbye to accidental edits.
|
||||
- **Translations**: Docmost is available in over 10+ languages. 🇺🇸 🇨🇳 🇫🇷 🇩🇪 🇮🇹 🇯🇵 🇰🇷 🇧🇷 🇷🇺 🇪🇸🇺🇦
|
||||
@ -1,22 +1,30 @@
|
||||
name: Docmost
|
||||
tags:
|
||||
- 建站
|
||||
title: 开源协作wiki和文档软件
|
||||
description: 开源协作 wiki 和文档软件
|
||||
title: 开源协作 wiki 与文档软件
|
||||
description: 开源协作 wiki 与文档软件
|
||||
additionalProperties:
|
||||
key: docmost
|
||||
name: Docmost
|
||||
tags:
|
||||
- Website
|
||||
shortDescZh: 开源协作wiki和文档软件
|
||||
shortDescEn: Open-source collaborative wiki and documentation software.
|
||||
shortDescZh: 开源协作 wiki 与文档软件
|
||||
shortDescEn: Open-source collaborative wiki and documentation software
|
||||
description:
|
||||
zh: Docmost是Notion和Confluence等开源软件的替代品。
|
||||
en: Docmost is an open-source alternative to the likes of Notion and Confluence.
|
||||
en: Open-source collaborative wiki and documentation software
|
||||
zh: 开源协作 wiki 与文档软件
|
||||
zh-Hant: 開源協作 wiki 與文件軟體
|
||||
ja: オープンソースの共同編集可能なウィキおよびドキュメントソフトウェア
|
||||
ms: Perisian wiki dan dokumentasi kolaboratif sumber terbuka
|
||||
pt-br: Software de wiki e documentação colaborativo de código aberto
|
||||
ru: Программное обеспечение для вики и документации с открытым исходным кодом
|
||||
ko: 오픈 소스 협업 위키 및 문서화 소프트웨어
|
||||
type: website
|
||||
crossVersionUpdate: true
|
||||
limit: 0
|
||||
recommend: 0
|
||||
website: https://docmost.com/
|
||||
website: https://docmost.com
|
||||
github: https://github.com/docmost/docmost
|
||||
document: https://docmost.com/docs/
|
||||
document: https://docmost.com/docs
|
||||
architectures:
|
||||
- amd64
|
||||
- arm64
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 79 KiB After Width: | Height: | Size: 5.9 KiB |
Loading…
x
Reference in New Issue
Block a user