mirror of
https://github.com/gomods/athens
synced 2026-02-03 11:00:32 +00:00
* switch proxy to config file pull in single flight changes * changes for single-flight * intermediate stage. All tests passing. pkg still has env refs * remove all env references * delete config/env entirely * fix failing tests * create the config.toml file as part of dev setup * create config file only if it doesn't exist * update Dockerfiles to use config file * move composing elements to the top * verbose parameter naming * newline * add flag for config file path * update docs with config file flag * remove unnecessary nil check * use filepath.join * rename redis port to address * fix path.join * fix issues after merge * add vendor dir
9 lines
274 B
Go
9 lines
274 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"`
|
|
}
|