config: changed default paths to use xdg dirs

This commit is contained in:
Tigor Hutasuhut 2024-06-11 14:47:22 +07:00
parent 9c80db1c1d
commit f13b54d549

View file

@ -18,13 +18,13 @@ var DefaultConfig = map[string]any{
"log.level": "info",
"log.output": "stderr",
"log.file.enable": true,
"log.file.path": "redmage.log",
"log.file.path": path.Join(xdg.CacheHome, "redmage", "redmage.log"),
"db.driver": "sqlite3",
"db.string": "data.db",
"db.string": path.Join(xdg.Home, ".local", "share", "redmage", "data.db"),
"db.automigrate": true,
"pubsub.db.name": "pubsub.db",
"pubsub.db.name": path.Join(xdg.Home, ".local", "share", "redmage", "pubsub.db"),
"pubsub.db.timeout": "5s",
"pubsub.ack.deadline": "30m",