2022-02-20 19:51:55 +08:00
|
|
|
|
# 开发环境配置
|
2022-05-21 14:56:50 +08:00
|
|
|
|
client:
|
|
|
|
|
port: 5001
|
|
|
|
|
assetPrefix: '/'
|
|
|
|
|
apiUrl: 'http://localhost:5002/api'
|
|
|
|
|
collaborationUrl: 'ws://localhost:5003'
|
2022-05-22 10:33:08 +08:00
|
|
|
|
# 以下为页面 meta 配置
|
|
|
|
|
seoAppName: '云策文档'
|
|
|
|
|
seoDescription: '云策文档是一款开源知识管理工具。通过独立的知识库空间,结构化地组织在线协作文档,实现知识的积累与沉淀,促进知识的复用与流通。'
|
2022-06-03 15:43:50 +08:00
|
|
|
|
seoKeywords: '云策文档,协作,文档,fantasticit,https://github.com/fantasticit/think'
|
2022-05-22 10:33:08 +08:00
|
|
|
|
# 预先连接的来源,空格分割(比如图片存储服务器)
|
|
|
|
|
dnsPrefetch: '//wipi.oss-cn-shanghai.aliyuncs.com'
|
2022-05-24 17:33:30 +08:00
|
|
|
|
# 站点地址(如:http://think.codingit.cn/),一定要设置,否则会出现 cookie、跨域等问题
|
|
|
|
|
siteUrl: 'http://localhost:5001'
|
|
|
|
|
siteDomain: ''
|
2022-05-21 14:56:50 +08:00
|
|
|
|
|
2022-02-20 19:51:55 +08:00
|
|
|
|
server:
|
2022-03-21 16:46:27 +08:00
|
|
|
|
prefix: '/api'
|
2022-05-21 14:56:50 +08:00
|
|
|
|
port: 5002
|
2022-02-20 19:51:55 +08:00
|
|
|
|
collaborationPort: 5003
|
2022-05-18 21:14:18 +08:00
|
|
|
|
maxDocumentVersion: 20 # 最大版本记录数
|
2022-05-21 14:39:56 +08:00
|
|
|
|
logRetainDays: 3 # 日志保留天数,比如只保留近三天日志
|
2022-05-26 13:18:36 +08:00
|
|
|
|
enableRateLimit: true # 是否限流
|
|
|
|
|
rateLimitWindowMs: 60000 # 限流时间
|
2022-05-26 13:21:59 +08:00
|
|
|
|
rateLimitMax: 1000 # 单位限流时间内单个 ip 最大访问数量
|
2022-06-30 14:20:38 +08:00
|
|
|
|
enableEmailVerify: false
|
2022-06-28 17:11:26 +08:00
|
|
|
|
email: # 邮箱服务,参考 http://help.163.com/09/1223/14/5R7P6CJ600753VB8.html?servCode=6010376 获取 SMTP 配置
|
|
|
|
|
host: ''
|
|
|
|
|
port: 465
|
|
|
|
|
user: ''
|
|
|
|
|
password: ''
|
|
|
|
|
admin:
|
2022-06-28 23:46:57 +08:00
|
|
|
|
name: 'admin' # 注意修改
|
|
|
|
|
password: 'admin' # 注意修改
|
|
|
|
|
email: 'admin@think.com' # 注意修改为真实邮箱地址
|
2022-02-20 19:51:55 +08:00
|
|
|
|
|
|
|
|
|
# 数据库配置
|
|
|
|
|
db:
|
|
|
|
|
mysql:
|
2022-03-21 16:46:27 +08:00
|
|
|
|
host: '127.0.0.1'
|
2022-06-28 20:26:30 +08:00
|
|
|
|
username: 'think'
|
|
|
|
|
password: 'think'
|
2022-03-21 16:46:27 +08:00
|
|
|
|
database: 'think'
|
2022-02-20 19:51:55 +08:00
|
|
|
|
port: 3306
|
2022-03-21 16:46:27 +08:00
|
|
|
|
charset: 'utf8mb4'
|
|
|
|
|
timezone: '+08:00'
|
2022-02-20 19:51:55 +08:00
|
|
|
|
synchronize: true
|
2022-03-29 22:23:41 +08:00
|
|
|
|
redis:
|
|
|
|
|
host: '127.0.0.1'
|
|
|
|
|
port: '6379'
|
|
|
|
|
password: 'root'
|
2022-02-20 19:51:55 +08:00
|
|
|
|
|
|
|
|
|
# oss 文件存储服务
|
|
|
|
|
oss:
|
2022-06-04 17:01:33 +08:00
|
|
|
|
local:
|
2022-06-04 22:40:31 +08:00
|
|
|
|
enable: true
|
2022-06-04 22:30:22 +08:00
|
|
|
|
# 线上更改为服务端地址(如:https://api.codingit.cn)
|
2022-06-04 17:01:33 +08:00
|
|
|
|
server: 'http://localhost:5002'
|
2022-06-04 22:30:22 +08:00
|
|
|
|
# 以下为各厂商 sdk 配置,不要修改字段,填入值即可
|
|
|
|
|
tencent:
|
|
|
|
|
enable: false
|
|
|
|
|
config:
|
|
|
|
|
SecretId: ''
|
|
|
|
|
SecretKey: ''
|
|
|
|
|
Bucket: ''
|
|
|
|
|
Region: ''
|
2022-02-20 19:51:55 +08:00
|
|
|
|
aliyun:
|
2022-06-04 17:01:33 +08:00
|
|
|
|
enable: false
|
|
|
|
|
config:
|
|
|
|
|
accessKeyId: ''
|
|
|
|
|
accessKeySecret: ''
|
|
|
|
|
bucket: ''
|
|
|
|
|
https: true
|
|
|
|
|
region: ''
|
2022-02-20 19:51:55 +08:00
|
|
|
|
|
|
|
|
|
# jwt 配置
|
|
|
|
|
jwt:
|
2022-03-21 16:46:27 +08:00
|
|
|
|
secretkey: 'zA_Think+KNOWLEDGE+WIKI+DOCUMENTS@2022'
|
|
|
|
|
expiresIn: '6h'
|