gomog/config.yaml.example

20 lines
611 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Gomog 服务器配置示例
# 服务器配置
server:
http_addr: ":8080" # HTTP 监听地址
tcp_addr: ":27017" # TCP 监听地址MongoDB 风格协议)
mode: "dev" # 运行模式dev, prod
# 数据库配置
database:
type: "sqlite" # 数据库类型sqlite, postgres, dm8
dsn: "gomog.db" # 数据源名称
max_open: 10 # 最大打开连接数
max_idle: 5 # 最大空闲连接数
# 日志配置
log:
level: "info" # 日志级别debug, info, warn, error
format: "text" # 日志格式text, json