philipptrenz / kfm-connector
Keep track of all your Kirby websites within a single tool.
Package info
github.com/philipptrenz/kfm-connector
Type:kirby-plugin
pkg:composer/philipptrenz/kfm-connector
1.2.3
2023-10-04 15:11 UTC
Requires
- firebase/php-jwt: ^6.8
- getkirby/composer-installer: ^1.1
Requires (Dev)
- phpunit/phpunit: ^10.3
- swaggest/json-schema: ^0.12.41
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
This is the official Kirby plugin to connect your Kirby website to the Kirby Fleet Manager.
Installation
Download
Download and copy this repository to /site/plugins/kfm-connector.
Git submodule
git submodule add https://github.com/philipptrenz/kfm-connector.git site/plugins/kfm-connector
Composer
composer require philipptrenz/kfm-connector
Setup
Add the base url to your Kirby Fleet Manager instance as issuer to site/config/config.php (make sure to use a secure SSL connection):
<?php return [ # ... 'philipptrenz.kfm-connector' => [ 'issuer' => 'https://my-kirby-fleet-manager-instance.com', 'jwks_cache_duration' => 4320, // OPTIONAL; in minutes, defaults to 3 days 'ip_whitelist' => [ // OPTIONAL; limits access to listed IPs, if set '::1', '127.0.0.1' ] ], # ... ];
Test
./vendor/bin/phpunit --bootstrap ./tests/bootstrap.php --testdox ./tests/suites
License
MIT
© 2023 Philipp Trenz