1
0
mirror of https://github.com/freescout-helpdesk/freescout.git synced 2024-11-24 03:12:46 +01:00

APP_PROXY variable - closes #2242

This commit is contained in:
FreeScout 2022-09-16 06:33:47 -07:00
parent 9dbc09cccd
commit b65373b837
3 changed files with 14 additions and 0 deletions

View File

@ -15,6 +15,10 @@ APP_URL=https://example.com
# If you are using HTTPS, feel free to uncomment this line to improve security
#SESSION_SECURE_COOKIE=true
# Enter your proxy address here if freescout.net is not available from your server
# (access to freescout.net is required to obtain official modules)
#APP_PROXY=
# Timezones: https://github.com/freescout-helpdesk/freescout/wiki/PHP-Timezones
# Comment it to use default timezone from php.ini
#APP_TIMEZONE=Europe/London

View File

@ -40,12 +40,14 @@ class WpApi
return $client->request('POST', $url, [
'connect_timeout' => 10,
'form_params' => $params,
'proxy' => config('app.proxy'),
]);
} else {
$params['v'] = config('app.version');
return $client->request('GET', $url, [
'connect_timeout' => 10,
'query' => $params,
'proxy' => config('app.proxy'),
]);
}
}

View File

@ -357,6 +357,14 @@ return [
*/
'custom_number' => env('APP_CUSTOM_NUMBER', false),
/*
|--------------------------------------------------------------------------
| Enter your proxy address in .env file if freescout.net is not available from your server
| (access to freescout.net is required to obtain official modules)
|--------------------------------------------------------------------------
*/
'proxy' => env('APP_PROXY', ''),
/*
|--------------------------------------------------------------------------
| Autoloaded Service Providers