Verified Commit 23739ec8 authored by Sebastian Schüpbach's avatar Sebastian Schüpbach

Merge branch 'master' of gitlab.switch.ch:memoriav/memobase-2020/services/url-checker

parents e6f46e34 41583006
Pipeline #10478 passed with stages
in 2 minutes and 7 seconds
......@@ -3,6 +3,7 @@ package main
import (
"github.com/BurntSushi/toml"
"log"
"os"
"time"
)
......@@ -67,5 +68,9 @@ func LoadConfig(filepath string) Config {
if err != nil {
log.Fatalln("Error on loading config: ", err)
}
dsn := os.Getenv("DSN")
if dsn != "" {
conf.DB.Dsn = dsn
}
return conf
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment