Algolia credentials
Store the Algolia credentials in config/,
under the extension key typo3_:
config/system/additional.php
$GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['typo3_search_algolia'] = array_merge(
$GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['typo3_search_algolia'] ?? [],
[
'appId' => getenv('ALGOLIA_APP_ID'),
'apiKey' => getenv('ALGOLIA_API_KEY'),
]
);
Copied!
-
- Type
- string
Your Algolia application ID.
-
- Type
- string
An Algolia API key restricted to the indexes of this installation, with the ACLs
add,Object delete,Object deleteandIndex list.Indexes deleteandIndex listare needed for clearing and listing indexes in the administration module.Indexes
Both values are shown in the Algolia dashboard.
Warning
Do not use the Admin API key, and do not use this key in the frontend. Keep it out of version control, for example by reading it from an environment variable as shown above.