philipptrenz/kfm-connector

Keep track of all your Kirby websites within a single tool.

1.2.3 2023-10-04 15:11 UTC

This package is auto-updated.

Last update: 2024-04-25 13:49:40 UTC


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