Global Configuration
Most of the SEO Audit configuration can be done in your blueprints per view button or section. Additionally, you can configure internal handling of the plugin globally in your config.php
file.
Proxy Configuration
For specific use cases, such as running Kirby inside Docker containers, you can adjust the proxy configuration globally.
urlResolver
Callable
The urlResolver
property accepts a callable that is used to resolve the URL of the proxy API. This is useful if you run Kirby inside Docker containers and need to resolve the URL to the host machine:
'johannschopplich.seo-audit' => [
'proxy' => [
'urlResolver' => function (string $url) {
$uri = new \Kirby\Http\Uri($url);
if ($uri->domain() === 'http://127.0.0.1:3000') {
$uri->setHost('host.docker.internal');
}
return $uri->toString();
}
]
]
params
Array
Any parameter supported by Kirby's Remote::request()
method can be passed to the proxy API. This is useful if you need to authenticate against the preview URL:
'johannschopplich.seo-audit' => [
'proxy' => [
'params' => [
'basicAuth' => 'user:password'
]
]
]
Custom Plugin Translations
If you prefer to overwrite the default translations of the plugin, you can do so by adding translations for your language in the languages
directory of your Kirby installation.
translations.php
for the full list of translation keys.For example, to change the translation of the analyze button to Check SEO
in English, append the following translations
array to the languages/en.php
file:
return [
'code' => 'en',
'name' => 'English',
// ... Other language configuration
'translations' => [
'johannschopplich.seo-audit.analyze' => 'Check SEO'
]
];