配置说明 #
config.toml
配置文件说明
#
[server]
host = "0.0.0.0" # 监听地址
port = 8080 # 监听端口
baseDir = "/data/smart-git/repos" # 缓存文件夹
memLimit = 0 #MB 内存使用限制
[log]
logfilepath = "/data/smart-git/log/smart-git.log" # 日志存储位置
maxlogsize = 5 # MB
level = "info" # dump, debug, info, warn, error, none
[Database]
path = "/data/smart-git/db/smart-git.db" # 数据库存储位置
[cache]
expire = "1h" # 缓存过期时间
expireEx = "10m" # 过期延长时间(当hash检查后发现未过期, 增加的时间)