mirror of
https://github.com/gomods/athens
synced 2026-02-03 11:00:32 +00:00
* Support custom ca's and make insecure as part optional default being false * Fix gofmt issue * Fix newline
10 lines
339 B
Go
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"`
|
|
}
|