Files
athens/pkg/config/mongo.go
Manu Gupta 13083b9d32 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
2018-10-15 11:14:48 +02:00

10 lines
339 B
Go

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"`
InsecureConn bool `envconfig:"ATHENS_MONGO_INSECURE"`
}