This commit is contained in:
2026-03-23 00:14:44 +01:00
parent 355274b918
commit a4d01e3700
11 changed files with 180 additions and 135 deletions
+5
View File
@@ -31,6 +31,11 @@ func loadConfig() *Configuration {
cfg.DatabasePath = defaultDbFolder
}
cfg.UsersPath = os.Getenv("USERS_PATH")
if cfg.UsersPath == "" {
cfg.UsersPath = "./users.txt"
}
lvl, _ := logrus.ParseLevel(os.Getenv("LOG_LEVEL"))
if lvl == 0 {
lvl = logrus.InfoLevel