-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy pathconfig.yaml
More file actions
23 lines (23 loc) · 1.4 KB
/
Copy pathconfig.yaml
File metadata and controls
23 lines (23 loc) · 1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
port: 2668 # 服务 HTTP 协议端口
mode: "std" # 默认 active 为 std 标准库,旧数据是 mmap 模式,这个 std 配置可以移除了
path: "/tmp/urnadb" # 数据库文件存储目录
auth: "Are we wide open to the world?" # 访问 HTTP 协议的秘密
logpath: "/tmp/urnadb/out.log" # urnadb 在运行时程序产生的日志存储文件
debug: false # 是否开启 debug 模式
region: # 数据区
enable: true # 是否开启数据压缩功能
cron: "0 0 3 * *" # 垃圾回收器执行周期改为 cron 的格式
threshold: 1 # 默认个数据文件大小,单位 GB
encryptor: # 是否开启静态数据加密功能
enable: false
secret: "your-static-data-secret!"
compressor: # 是否开启静态数据压缩功能
enable: false
checkpoint: # 是否开启索引定时快照功能
enable: false
interval: 1800 # 每 30 分钟生成一次索引数据快照
allowip: # 白名单 IP 列表,可以去掉这个字段,去掉之后白名单就不会开启
- 192.168.31.221
- 192.168.101.225
- 192.168.101.226
- 127.0.0.1