Skip to content

Latest commit

 

History

History
47 lines (37 loc) · 1.18 KB

README.md

File metadata and controls

47 lines (37 loc) · 1.18 KB

strdust

CI Crates.io MSRV

strdust 是一个独立于业务和结算规则的虚拟资产管理系统,能够精确追踪每个账户的资金流动与资产状态。

配置文件示例

config.toml

[general]
listen = "0.0.0.0:8000"

[logger]
# Log levels: trace > debug > info > warn > error
# trace: Very detailed debugging information.
# debug: General debugging information.
# info: Normal operational information.
# warn: Potential issues.
# error: Serious problems.
level = "debug"
# writer options:
# file: Logs to "directory/file_name_prefix.year-month-day".
# stdout: Logs to console.
writer = "file"
directory = "./log"
file_name_prefix = "strdust.log"

[postgres]
url = "postgres://postgres:@127.0.0.1:5432/strdust"
max_connections = 10
min_connections = 1
acquire_timeout = 30
idle_timeout = 600
max_lifetime = 1800

[redis]
url = "redis://127.0.0.1:6379"

.env

DATABASE_URL="postgres://postgres:@127.0.0.1:5432/strdust"