mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
Merge pull request #13034 from appwrite/fix/install-telemetry-no-pii
fix(install): honor DO_NOT_TRACK for self-hosted install telemetry
This commit is contained in:
1 file changed
+7
@@ -15,6 +15,7 @@ use Utopia\Config\Config;
|
||||
use Utopia\Console;
|
||||
use Utopia\Fetch\Client;
|
||||
use Utopia\Platform\Action;
|
||||
use Utopia\System\System;
|
||||
use Utopia\Validator\Boolean;
|
||||
use Utopia\Validator\Text;
|
||||
use Utopia\Validator\WhiteList;
|
||||
@@ -851,6 +852,12 @@ class Install extends Action
|
||||
return;
|
||||
}
|
||||
|
||||
// Opt out via DO_NOT_TRACK (https://donottrack.sh/)
|
||||
$doNotTrack = \strtolower((string) System::getEnv('DO_NOT_TRACK', ''));
|
||||
if (\in_array($doNotTrack, ['1', 'true', 'yes'], true)) {
|
||||
return;
|
||||
}
|
||||
|
||||
$appEnv = $input['_APP_ENV'] ?? 'development';
|
||||
$domain = $input['_APP_DOMAIN'] ?? 'localhost';
|
||||
|
||||
|
||||
Reference in new issue
Block a user