mirror of
https://github.com/gomods/athens
synced 2026-02-03 12:10:32 +00:00
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:
committed by
Michal Pristas
parent
4b6da42480
commit
13083b9d32
+3
-2
@@ -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"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user