mirror of
https://github.com/gomods/athens
synced 2026-02-03 12:10:32 +00:00
support goproxy for list/download command (#1304)
This commit is contained in:
@@ -21,6 +21,7 @@ type Config struct {
|
||||
TimeoutConf
|
||||
GoEnv string `validate:"required" envconfig:"GO_ENV"`
|
||||
GoBinary string `validate:"required" envconfig:"GO_BINARY_PATH"`
|
||||
GoProxy string `envconfig:"GOPROXY"`
|
||||
GoGetWorkers int `validate:"required" envconfig:"ATHENS_GOGET_WORKERS"`
|
||||
ProtocolWorkers int `validate:"required" envconfig:"ATHENS_PROTOCOL_WORKERS"`
|
||||
LogLevel string `validate:"required" envconfig:"ATHENS_LOG_LEVEL"`
|
||||
@@ -76,6 +77,7 @@ func defaultConfig() *Config {
|
||||
return &Config{
|
||||
GoBinary: "go",
|
||||
GoEnv: "development",
|
||||
GoProxy: "direct",
|
||||
GoGetWorkers: 10,
|
||||
ProtocolWorkers: 30,
|
||||
LogLevel: "debug",
|
||||
|
||||
Reference in New Issue
Block a user