diff --git a/app/Http/Controllers/ItemController.php b/app/Http/Controllers/ItemController.php index 7c0598fba..f16e395f7 100644 --- a/app/Http/Controllers/ItemController.php +++ b/app/Http/Controllers/ItemController.php @@ -267,6 +267,11 @@ public static function storelogic(Request $request, $id = null): Item ], ]; + // Proxy management + if (isset(getenv('HTTPS_PROXY')) || isset(getenv('https_proxy'))) { + $options['proxy']['http'] = getenv('HTTPS_PROXY') ?: getenv('https_proxy'); + } + $file = $request->input('icon'); $path_parts = pathinfo($file); if (!isset($path_parts['extension'])) {