mirror of
https://github.com/gomods/athens
synced 2026-02-03 11:00:32 +00:00
Upgrades the AWS SDK to v2. AWS S3 bucket urls will now error if they are not prefixed with a schema (example: https://).
11 lines
578 B
Go
11 lines
578 B
Go
package config
|
|
|
|
// MongoConfig specifies the properties required to use MongoDB as the storage backend.
|
|
type MongoConfig struct {
|
|
URL string `envconfig:"ATHENS_MONGO_STORAGE_URL" validate:"required"`
|
|
DefaultDBName string `default:"athens" envconfig:"ATHENS_MONGO_DEFAULT_DATABASE"`
|
|
DefaultCollectionName string `default:"modules" envconfig:"ATHENS_MONGO_DEFAULT_COLLECTION"`
|
|
CertPath string `envconfig:"ATHENS_MONGO_CERT_PATH"`
|
|
InsecureConn bool `envconfig:"ATHENS_MONGO_INSECURE"`
|
|
}
|