Added basic authentication in debug/vars

Using a simple http auth middleware.
https://github.com/goji/httpauth
This commit is contained in:
claudemiro
2015-01-13 08:01:02 -03:00
parent be66978479
commit 0aec168ab3
3 changed files with 14 additions and 4 deletions
+5 -3
View File
@@ -8,9 +8,11 @@ import "errors"
// The config file
type ConfigFile struct {
Host string // The host, eg: :8080 will start on 0.0.0.0:8080
Expvar bool
Apps []*App
Host string // The host, eg: :8080 will start on 0.0.0.0:8080
Expvar bool
User string
Password string
Apps []*App
}
// Error for App not found