Support custom ca's and make insecure as part optional default being false (#767)

* Support custom ca's and make insecure as part optional default being false

* Fix gofmt issue

* Fix newline
This commit is contained in:
Manu Gupta
2018-10-15 05:14:48 -04:00
committed by Michal Pristas
parent 4b6da42480
commit 13083b9d32
4 changed files with 15 additions and 5 deletions
+3 -2
View File
@@ -3,6 +3,7 @@ package config
// MongoConfig specifies the properties required to use MongoDB as the storage backend
type MongoConfig struct {
TimeoutConf
URL string `validate:"required" envconfig:"ATHENS_MONGO_STORAGE_URL"`
CertPath string `envconfig:"ATHENS_MONGO_CERT_PATH"`
URL string `validate:"required" envconfig:"ATHENS_MONGO_STORAGE_URL"`
CertPath string `envconfig:"ATHENS_MONGO_CERT_PATH"`
InsecureConn bool `envconfig:"ATHENS_MONGO_INSECURE"`
}