<?php
defined('BASEPATH') OR exit('No direct script access allowed');

/* Aktifkan hanya setelah endpoint dan public key produksi telah diisi. */
$config['license_enabled'] = FALSE;
$config['license_server_url'] = 'https://license.example.com/api/license'; // TODO
$config['license_product_code'] = 'putrigrafika';
$config['license_public_key'] = <<<'PEM'
-----BEGIN PUBLIC KEY-----
TODO_REPLACE_WITH_PRODUCTION_PUBLIC_KEY
-----END PUBLIC KEY-----
PEM;
$config['license_cache_file'] = APPPATH . 'cache/license.json';
$config['license_connect_timeout'] = 4;
$config['license_timeout'] = 8;
$config['license_verify_tls'] = TRUE;
$config['license_recheck_seconds'] = 86400; // Server tetap menjadi sumber nilai final.
$config['license_grace_seconds'] = 604800;
$config['license_clock_skew_seconds'] = 300;
$config['license_include_server_ip'] = TRUE;
$config['license_include_mac'] = FALSE; // Opt-in; shared hosting sering melarang/tidak stabil.
$config['license_whitelist_controllers'] = array(
    'license', 'auth', 'cek_login', 'my404', 'webhook', 'fonnte_webhook'
);

