fix(config): discover mounted yml config

This commit is contained in:
tiennm99 committed 2026-06-28 14:05:48 +07:00
1 parent 9a69030179
commit 08da9dcb84
4 files changed
+68 -4

No files matched your search

+6 -3
View File
@@ -11,10 +11,13 @@ import (
"github.com/tiennm99/keepalive/adapter"
)
const defaultConfigFile = "keepalive.yaml"
func main() {
services, err := loadConfigFile(defaultConfigFile)
configPath, err := defaultConfigFile()
if err != nil {
log.Fatalf("load config: %v", err)
}
services, err := loadConfigFile(configPath)
if err != nil {
log.Fatalf("load config: %v", err)
}