This commit is contained in:
Damodar Lohani
2025-01-08 03:43:31 +00:00
parent 98afa10aa9
commit 443670c7ec
+14 -13
View File
@@ -3,7 +3,7 @@
/**
* App init
*
* Initializes both common configs across HTTP, CLI and Workers
* Initializes common configs across HTTP, CLI and Workers
*
*/
@@ -66,6 +66,19 @@ use Utopia\Validator\WhiteList;
\error_reporting(E_ALL);
\stream_context_set_default([ // Set global user agent and http settings
'http' => [
'method' => 'GET',
'user_agent' => \sprintf(
APP_USERAGENT,
System::getEnv('_APP_VERSION', 'UNKNOWN'),
System::getEnv('_APP_EMAIL_SECURITY', System::getEnv('_APP_SYSTEM_SECURITY_EMAIL_ADDRESS', APP_EMAIL_SECURITY))
),
'timeout' => 2,
],
]);
const APP_NAME = 'Appwrite';
const APP_DOMAIN = 'appwrite.io';
const APP_EMAIL_TEAM = 'team@localhost.test'; // Default email address
@@ -1038,18 +1051,6 @@ foreach ($locales as $locale) {
Locale::setLanguageFromJSON($code, $path);
}
\stream_context_set_default([ // Set global user agent and http settings
'http' => [
'method' => 'GET',
'user_agent' => \sprintf(
APP_USERAGENT,
System::getEnv('_APP_VERSION', 'UNKNOWN'),
System::getEnv('_APP_EMAIL_SECURITY', System::getEnv('_APP_SYSTEM_SECURITY_EMAIL_ADDRESS', APP_EMAIL_SECURITY))
),
'timeout' => 2,
],
]);
function getDevice($root): Device
{