2024-04-07 00:28:29 +07:00
|
|
|
package config
|
|
|
|
|
2024-04-07 12:11:25 +07:00
|
|
|
var DefaultConfig = map[string]any{
|
2024-04-09 23:17:23 +07:00
|
|
|
"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",
|
2024-04-07 00:28:29 +07:00
|
|
|
|
|
|
|
"db.driver": "sqlite3",
|
|
|
|
"db.string": "data.db",
|
|
|
|
"db.automigrate": true,
|
2024-04-07 12:11:25 +07:00
|
|
|
|
2024-04-11 16:04:13 +07:00
|
|
|
"download.concurrency": 5,
|
|
|
|
"download.directory": "",
|
|
|
|
"download.timeout.headers": "10s",
|
|
|
|
"download.timeout.idle": "5s",
|
|
|
|
"download.timeout.idlespeed": "10KB",
|
2024-04-09 23:17:23 +07:00
|
|
|
|
2024-04-07 16:06:33 +07:00
|
|
|
"http.port": "8080",
|
|
|
|
"http.host": "0.0.0.0",
|
|
|
|
"http.shutdown_timeout": "5s",
|
2024-04-08 21:50:52 +07:00
|
|
|
"http.hotreload": false,
|
2024-04-12 22:47:22 +07:00
|
|
|
|
|
|
|
"telemetry.openobserve.enable": false,
|
|
|
|
"telemetry.openobserve.log.enable": true,
|
|
|
|
"telemetry.openobserve.log.level": "info",
|
|
|
|
"telemetry.openobserve.log.source": true,
|
|
|
|
"telemetry.openobserve.log.endpoint": "http://localhost:5080/api/default/default/_json",
|
|
|
|
"telemetry.openobserve.log.concurrency": 4,
|
|
|
|
"telemetry.openobserve.log.buffer.size": 2 * 1024, // 2kb
|
|
|
|
"telemetry.openobserve.log.buffer.timeout": "500ms",
|
|
|
|
"telemetry.openobserve.log.username": "root@example.com",
|
|
|
|
"telemetry.openobserve.log.password": "Complexpass#123",
|
2024-04-07 00:28:29 +07:00
|
|
|
}
|