Add support for PROXY and PORT envs
This commit is contained in:
@@ -47,9 +47,9 @@ func MainApp(configPath string) {
|
||||
|
||||
apiClient := http.NewHTTPClient(
|
||||
config.GetToken(),
|
||||
config.GetRetriesUntilFailed()*10, // default retries = 2, so this is 20
|
||||
config.GetApiTimeoutSecs(), // default api timeout = 60
|
||||
false, // ipv6 support is not needed for api client
|
||||
config.GetRetriesUntilFailed()*2, // default retries = 2, so this is 4
|
||||
config.GetApiTimeoutSecs(), // default api timeout = 60
|
||||
false, // ipv6 support is not needed for api client
|
||||
config,
|
||||
log.Named("api_client"),
|
||||
)
|
||||
@@ -64,10 +64,10 @@ func MainApp(configPath string) {
|
||||
)
|
||||
|
||||
downloadClient := http.NewHTTPClient(
|
||||
"",
|
||||
config.GetRetriesUntilFailed(),
|
||||
config.GetDownloadTimeoutSecs(),
|
||||
true,
|
||||
"", // no token required for download client
|
||||
config.GetRetriesUntilFailed(), //
|
||||
config.GetDownloadTimeoutSecs(), //
|
||||
true, // download client supports ipv6
|
||||
config,
|
||||
log.Named("download_client"),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user