Skip to content

Commit 825f67a

Browse files
authored
Merge pull request #1480 from Nyuwb/patch-1
feat(icon-upload): proxy management
2 parents 05a552f + dce37c1 commit 825f67a

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

app/Http/Controllers/ItemController.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,11 @@ public static function storelogic(Request $request, $id = null): Item
267267
],
268268
];
269269

270+
// Proxy management
271+
if (isset(getenv('HTTPS_PROXY')) || isset(getenv('https_proxy'))) {
272+
$options['proxy']['http'] = getenv('HTTPS_PROXY') ?: getenv('https_proxy');
273+
}
274+
270275
$file = $request->input('icon');
271276
$path_parts = pathinfo($file);
272277
if (!isset($path_parts['extension'])) {

0 commit comments

Comments
 (0)