Redmage/config/default.go

29 lines
730 B
Go
Raw Normal View History

package config
2024-04-07 12:11:25 +07:00
var DefaultConfig = map[string]any{
"flags.containerized": false,
"log.enable": true,
"log.source": true,
"log.format": "pretty",
"log.level": "info",
"log.output": "stderr",
"log.file.enable": true,
"log.file.path": "redmage.log",
"db.driver": "sqlite3",
"db.string": "data.db",
"db.automigrate": true,
2024-04-07 12:11:25 +07:00
"download.concurrency": 5,
"download.directory": "",
"download.timeout.firstbyte": "30s",
"download.timeout.idleconnection": "5s",
"download.timeout.idlespeed": 10 * 1024, // 10KB
2024-04-07 16:06:33 +07:00
"http.port": "8080",
"http.host": "0.0.0.0",
"http.shutdown_timeout": "5s",
"http.hotreload": false,
}