<?php

declare(strict_types=1);

/**
 * Licensing configuration (client side).
 *
 * The standalone License Server is a separate product; this app ships a client
 * that activates against it when configured. With no server URL set, or when
 * offline activation is allowed and the server is unreachable, the installer
 * proceeds in offline/trial mode so the product is usable out of the box.
 */

return [
    // Base URL of the License Server, e.g. https://licenses.example.com (empty = offline only).
    'server_url' => env('LICENSE_SERVER_URL', ''),

    // Product identifier sent during activation.
    'product' => env('LICENSE_PRODUCT', 'botguard'),

    // Allow installation to continue when the license server is absent/unreachable.
    'offline_allowed' => (bool) env('LICENSE_OFFLINE_ALLOWED', true),

    // Endpoints (relative to server_url).
    'endpoints' => [
        'activate'  => '/api/v1/activate',
        'heartbeat' => '/api/v1/heartbeat',
    ],
];
