mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 08:58:35 +00:00
Merge branch 'feat-upgrade-php-version' of github.com:appwrite/appwrite into feat-upgrade-php-version
This commit is contained in:
commit
47255f1df9
5 changed files with 6 additions and 6 deletions
2
.env
2
.env
|
|
@ -24,6 +24,6 @@ _APP_SMTP_PORT=25
|
|||
_APP_SMTP_SECURE=
|
||||
_APP_SMTP_USERNAME=
|
||||
_APP_SMTP_PASSWORD=
|
||||
_APP_STORAGE_LIMIT=100000000
|
||||
_APP_STORAGE_LIMIT=10000000
|
||||
_APP_FUNCTIONS_TIMEOUT=900
|
||||
_APP_FUNCTIONS_CONTAINERS=10
|
||||
|
|
|
|||
|
|
@ -95,7 +95,7 @@ ENV _APP_SERVER=swoole \
|
|||
_APP_OPTIONS_ABUSE=enabled \
|
||||
_APP_OPTIONS_FORCE_HTTPS=disabled \
|
||||
_APP_OPENSSL_KEY_V1=your-secret-key \
|
||||
_APP_STORAGE_LIMIT=100000000 \
|
||||
_APP_STORAGE_LIMIT=10000000 \
|
||||
_APP_STORAGE_ANTIVIRUS=enabled \
|
||||
_APP_REDIS_HOST=redis \
|
||||
_APP_REDIS_PORT=6379 \
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ ENV TZ=Asia/Tel_Aviv \
|
|||
_APP_OPTIONS_ABUSE=enabled \
|
||||
_APP_OPTIONS_FORCE_HTTPS=disabled \
|
||||
_APP_OPENSSL_KEY_V1=your-secret-key \
|
||||
_APP_STORAGE_LIMIT=100000000 \
|
||||
_APP_STORAGE_LIMIT=10000000 \
|
||||
_APP_STORAGE_ANTIVIRUS=enabled \
|
||||
_APP_REDIS_HOST=redis \
|
||||
_APP_REDIS_PORT=6379 \
|
||||
|
|
|
|||
|
|
@ -135,7 +135,7 @@ return [
|
|||
],
|
||||
[
|
||||
'name' => '_APP_STORAGE_LIMIT',
|
||||
'default' => '100000000',
|
||||
'default' => '10000000',
|
||||
'required' => false,
|
||||
'question' => '',
|
||||
],
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ sleep(2);
|
|||
|
||||
$http = new Server("0.0.0.0", 80);
|
||||
|
||||
$payloadSize = max(4000000 /* 4mb */, App::getEnv('_APP_STORAGE_LIMIT', 100000000));
|
||||
$payloadSize = max(4000000 /* 4mb */, App::getEnv('_APP_STORAGE_LIMIT', 10000000 /* 10mb */));
|
||||
|
||||
$http
|
||||
->set([
|
||||
|
|
@ -49,7 +49,7 @@ $http->on('AfterReload', function($serv, $workerId) {
|
|||
});
|
||||
|
||||
$http->on('start', function (Server $http) use ($payloadSize) {
|
||||
Console::success('Server started succefully (max payload is '.$payloadSize.' bytes)');
|
||||
Console::success('Server started succefully (max payload is '.number_format($payloadSize).' bytes)');
|
||||
|
||||
Console::info("Master pid {$http->master_pid}, manager pid {$http->manager_pid}");
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue