Skip to content
Snippets Groups Projects
Commit 93b2fee5 authored by Tibo's avatar Tibo
Browse files

use .env to configure proxy

parent 49917d94
No related branches found
No related tags found
No related merge requests found
Pipeline #3101 passed
......@@ -18,8 +18,8 @@ class ClientVersion extends \App\AbstractSensor
{
$options = ['timeout' => 5.0];
$proxy = getenv("https_proxy");
if ($proxy != false) {
$proxy = config("app.proxy", null);
if ($proxy != null) {
$options["proxy"] = $proxy;
}
......
......@@ -15,6 +15,8 @@ return [
'name' => env('APP_NAME', 'Monitoring'),
'proxy' => env('PROXY', null),
/*
|--------------------------------------------------------------------------
| Application Environment
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment