Merge branch 'main' of github.com:fantasticit/think

This commit is contained in:
fantasticit 2022-06-07 16:35:35 +08:00
commit fd78a8da6f
3 changed files with 31 additions and 6 deletions

View File

@ -75,11 +75,15 @@ git clone https://github.com/fantasticit/think.git
cd think cd think
docker-compose up -d docker-compose up -d
#二次更新升级 # 二次更新升级
cd think cd think
git pull git pull
docker-compose build docker-compose build
docker-compose up -d docker-compose up -d
# FAQ
如遇二次更新有问题,请更新代码重新构建,然后删除本地配置文件并重启容器.
如果还不能解决,1.有能力可自行解决|2.等待更新|3.去mrdoc.fun站点留言
``` ```
然后访问 `http://ip:5001` 即可. 然后访问 `http://ip:5001` 即可.

View File

@ -10,6 +10,7 @@ services:
#restart: always #restart: always
volumes: volumes:
- /path/to/you/dir/config:/app/config # 请注意修改 /path/to/you/dir 为云策文档配置文件目录. - /path/to/you/dir/config:/app/config # 请注意修改 /path/to/you/dir 为云策文档配置文件目录.
- /path/to/you/dir/static:/app/packages/server/static # 请注意修改 /path/to/you/dir 为云策文档附件存储目录.
environment: environment:
- TZ=Asia/Shanghai - TZ=Asia/Shanghai
ports: ports:

View File

@ -10,6 +10,9 @@ client:
seoKeywords: '云策文档,协作,文档,前端面试题,fantasticit,https://github.com/fantasticit/think' seoKeywords: '云策文档,协作,文档,前端面试题,fantasticit,https://github.com/fantasticit/think'
# 预先连接的来源,空格分割(比如图片存储服务器) # 预先连接的来源,空格分割(比如图片存储服务器)
dnsPrefetch: '//wipi.oss-cn-shanghai.aliyuncs.com' dnsPrefetch: '//wipi.oss-cn-shanghai.aliyuncs.com'
# 站点地址http://think.codingit.cn/),一定要设置,否则会出现 cookie、跨域等问题
siteUrl: 'http://localhost:5001'
siteDomain: ''
server: server:
prefix: '/api' prefix: '/api'
@ -17,6 +20,9 @@ server:
collaborationPort: 5003 collaborationPort: 5003
maxDocumentVersion: 20 # 最大版本记录数 maxDocumentVersion: 20 # 最大版本记录数
logRetainDays: 3 # 日志保留天数,比如只保留近三天日志 logRetainDays: 3 # 日志保留天数,比如只保留近三天日志
enableRateLimit: true # 是否限流
rateLimitWindowMs: 60000 # 限流时间
rateLimitMax: 1000 # 单位限流时间内单个 ip 最大访问数量
# 数据库配置 # 数据库配置
db: db:
@ -36,7 +42,21 @@ db:
# oss 文件存储服务 # oss 文件存储服务
oss: oss:
local:
enable: true
# 线上更改为服务端地址https://api.codingit.cn
server: 'http://localhost:5002'
# 以下为各厂商 sdk 配置,不要修改字段,填入值即可
tencent:
enable: false
config:
SecretId: ''
SecretKey: ''
Bucket: ''
Region: ''
aliyun: aliyun:
enable: false
config:
accessKeyId: '' accessKeyId: ''
accessKeySecret: '' accessKeySecret: ''
bucket: '' bucket: ''