From b72fc5a457c94aafb85866995f5697f206b8c838 Mon Sep 17 00:00:00 2001 From: Daniel Garcia Briseno Date: Tue, 9 Jun 2026 12:16:17 -0400 Subject: [PATCH] Set proxy configuration globally when config is loaded --- src/Config.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Config.php b/src/Config.php index abc9b621..5ec35f2e 100644 --- a/src/Config.php +++ b/src/Config.php @@ -69,6 +69,15 @@ public function __construct($file) { include_once HV_ROOT_DIR.'/../lib/Resque.php'; Resque::setBackend(HV_REDIS_HOST . ":" . HV_REDIS_PORT); + + if (defined('HV_HTTP_PROXY') && HV_HTTP_PROXY !== '') { + putenv('HTTP_PROXY=' . HV_HTTP_PROXY); + putenv('http_proxy=' . HV_HTTP_PROXY); + } + if (defined('HV_HTTPS_PROXY') && HV_HTTPS_PROXY !== '') { + putenv('HTTPS_PROXY=' . HV_HTTPS_PROXY); + putenv('https_proxy=' . HV_HTTPS_PROXY); + } } /**