提交合并

Signed-off-by: 萌森 <qyg2297248353@163.com>
This commit is contained in:
2024-07-17 16:30:13 +08:00
committed by qyg2297248353
commit 6c18fe434d
449 changed files with 21391 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
additionalProperties:
formFields:
- default: "/home/siyuan"
edit: true
envKey: SIYUAN_ROOT_PATH
labelZh: 数据持久化路径
labelEn: Data persistence path
required: true
type: text
- default: 6806
edit: true
envKey: PANEL_APP_PORT_HTTP
labelZh: WebUI 端口
labelEn: WebUI port
required: true
rule: paramPort
type: number
- default: ""
edit: true
envKey: AuthCode
labelZh: 授权码
labelEn: Access Auth Code
required: true
rule: paramComplexity
type: password
+25
View File
@@ -0,0 +1,25 @@
version: "3.8"
networks:
1panel-network:
external: true
services:
siyuan:
image: b3log/siyuan:v3.1.1
container_name: ${CONTAINER_NAME}
labels:
createdBy: "Apps"
restart: always
networks:
- 1panel-network
command: [ '--workspace=/siyuan/workspace/', '--accessAuthCode=${AuthCode}' ]
user: 1000:1000
ports:
- ${PANEL_APP_PORT_HTTP}:6806
env_file:
- /etc/1panel/envs/global.env
volumes:
- ${SIYUAN_ROOT_PATH}/workspace:/siyuan/workspace
environment:
- RUN_IN_CONTAINER=true
+20
View File
@@ -0,0 +1,20 @@
#!/bin/bash
if [ -f .env ]; then
source .env
if [ ! -d $SIYUAN_ROOT_PATH ]; then
mkdir -p $SIYUAN_ROOT_PATH
fi
if [ ! -d $SIYUAN_ROOT_PATH/workspace ]; then
mkdir -p $SIYUAN_ROOT_PATH/workspace
fi
chown -R 1000:1000 $SIYUAN_ROOT_PATH
echo "Check Finish."
else
echo "Error: .env file not found."
fi
+10
View File
@@ -0,0 +1,10 @@
#!/bin/bash
if [ -f .env ]; then
source .env
echo "Check Finish."
else
echo "Error: .env file not found."
fi
+10
View File
@@ -0,0 +1,10 @@
#!/bin/bash
if [ -f .env ]; then
source .env
echo "Check Finish."
else
echo "Error: .env file not found."
fi
+48
View File
@@ -0,0 +1,48 @@
# 思源笔记
![思源笔记](https://file.lifebus.top/imgs/siyuan_b3log_cover.png)
## 简介
重构你的思维
**所见所得 双链块引**
**加密同步 隐私优先**
思源笔记是一款隐私优先的个人知识管理系统,支持完全离线使用,同时也支持端到端加密同步。
融合块、大纲和双向链接,重构你的思维。
## 反向代理
Nginx 配置 WebSocket 反向代理:
```shell
location /ws {
proxy_pass http://localhost:6806;
proxy_read_timeout 60s;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'Upgrade';
}
```
## 常见问题
### 数据存储
数据保存在工作空间文件夹下,在工作空间 data 文件夹下:
| 文件夹 | 说明 |
|-----------|-------------------|
| assets | 保存所有插入的资源文件 |
| emojis | 用于保存自定义图标表情图片 |
| snippets | 用于保存代码片段 |
| storage | 用于保存查询条件、布局和闪卡数据等 |
| templates | 用于保存模板片段 |
| widgets | 用于保存挂件 |
| plugins | 用于保存插件 |
| public | 用于保存公开的数据 |
> 其余文件夹就是用户自己创建的笔记本文件夹,笔记本文件夹下 .sy 后缀的文件用于保存文档数据,数据格式为 JSON
+18
View File
@@ -0,0 +1,18 @@
name: 思源笔记
title: 隐私优先的个人知识管理系统
description: 隐私优先的个人知识管理系统
additionalProperties:
key: siyuan
name: 思源笔记
tags:
- WebSite
- Storage
- Local
shortDescZh: 隐私优先的个人知识管理系统
shortDescEn: A privacy-first personal knowledge management system
type: website
crossVersionUpdate: true
limit: 0
website: https://b3log.org/
github: https://github.com/siyuan-note/siyuan/
document: https://b3log.org/siyuan/
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB