From 7362a1e5d85a85a13d56c434b47815ba241b3ba1 Mon Sep 17 00:00:00 2001 From: ROuGGy Date: Thu, 7 Dec 2023 22:32:19 +0800 Subject: [PATCH] update --- config/config.toml | 0 internal/config/config.go | 5 +++-- 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 config/config.toml diff --git a/config/config.toml b/config/config.toml new file mode 100644 index 0000000..e69de29 diff --git a/internal/config/config.go b/internal/config/config.go index 7d5a563..fbaa2b1 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -2,13 +2,14 @@ package config import ( "errors" - "git.rouggy.com/rouggy/RaceBot/internal/domain" "log" "os" "path" "path/filepath" "text/template" + "git.rouggy.com/rouggy/RaceBot/internal/domain" + "github.com/spf13/viper" ) @@ -75,7 +76,7 @@ func (c *AppConfig) defaults() { Host: "127.0.0.1", Port: "3000", TMDbApiKey: "", - DbName: "racer.db", + DbName: "racer", UploadFolder: "/home/rouggy/torrents/rtorrent/Race", } }