summaryrefslogtreecommitdiff
path: root/config.go
diff options
context:
space:
mode:
Diffstat (limited to 'config.go')
-rw-r--r--config.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/config.go b/config.go
index cc4a366..43cdf8f 100644
--- a/config.go
+++ b/config.go
@@ -20,6 +20,9 @@ type Config struct {
Delay int
IgnoreRobotsTXT bool
+ BasicAuthUsername string
+ BasicAuthPassword string
+
Debug bool // sets log level to debug
}
@@ -98,5 +101,8 @@ func (c *Config) setsConfig() {
c.Delay = viper.GetInt("Delay")
c.IgnoreRobotsTXT = viper.GetBool("IgnoreRobotsTXT")
+ c.BasicAuthUsername = viper.GetString("BasicAuthUsername")
+ c.BasicAuthPassword = viper.GetString("BasicAuthPassword")
+
c.Debug = viper.GetBool("Debug")
}