2021-04-14 15:58:40 +00:00
|
|
|
<?php
|
|
|
|
|
2021-06-08 09:52:11 +00:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
2021-08-23 11:05:16 +00:00
|
|
|
namespace Modules\Analytics\Config;
|
2021-04-14 15:58:40 +00:00
|
|
|
|
2021-08-23 11:05:16 +00:00
|
|
|
use CodeIgniter\Config\BaseConfig;
|
2021-04-14 15:58:40 +00:00
|
|
|
|
2021-08-23 11:05:16 +00:00
|
|
|
class Analytics extends BaseConfig
|
2021-04-14 15:58:40 +00:00
|
|
|
{
|
2021-08-23 11:05:16 +00:00
|
|
|
/**
|
|
|
|
* Gateway to analytic routes. By default, all analytics routes will be under `/analytics` path
|
|
|
|
*/
|
|
|
|
public string $gateway = 'analytics';
|
|
|
|
|
2021-04-14 15:58:40 +00:00
|
|
|
/**
|
|
|
|
* --------------------------------------------------------------------
|
|
|
|
* Route filters options
|
|
|
|
* --------------------------------------------------------------------
|
2021-08-23 11:05:16 +00:00
|
|
|
* @var array<string, string>
|
2021-04-14 15:58:40 +00:00
|
|
|
*/
|
2021-05-18 17:16:36 +00:00
|
|
|
public array $routeFilters = [
|
2023-06-12 14:47:38 +00:00
|
|
|
'analytics-full-data' => 'permission:podcast#.view',
|
|
|
|
'analytics-data' => 'permission:podcast#.view',
|
2022-10-15 11:22:08 +00:00
|
|
|
'analytics-filtered-data' => 'permission:podcast#.view',
|
2021-04-14 15:58:40 +00:00
|
|
|
];
|
|
|
|
|
2022-03-30 16:09:06 +00:00
|
|
|
/**
|
|
|
|
* --------------------------------------------------------------------------
|
|
|
|
* Secret Salt
|
|
|
|
* --------------------------------------------------------------------------
|
|
|
|
*
|
|
|
|
* The secret salt is a string of random characters that is used when hashing data.
|
|
|
|
* Each Castopod instance has its own secret salt so keys will never be the same.
|
|
|
|
*
|
|
|
|
* Example:
|
|
|
|
* Z&|qECKBrwgaaD>~;U/tXG1U%tSe_oi5Tzy)h>}5NC2npSrjvM0w_Q>cs=0o=H]*
|
|
|
|
*/
|
|
|
|
public string $salt = '';
|
|
|
|
|
2021-05-06 14:00:48 +00:00
|
|
|
/**
|
2022-12-09 15:04:42 +00:00
|
|
|
* --------------------------------------------------------------------------
|
|
|
|
* The Open Podcast Prefix Project Config
|
|
|
|
* --------------------------------------------------------------------------
|
2021-05-12 14:00:25 +00:00
|
|
|
*
|
2022-12-09 15:04:42 +00:00
|
|
|
* @var array<string, string>
|
|
|
|
*/
|
|
|
|
public array $OP3 = [
|
|
|
|
'host' => 'https://op3.dev/',
|
|
|
|
];
|
|
|
|
|
|
|
|
public bool $enableOP3 = false;
|
2021-04-14 15:58:40 +00:00
|
|
|
}
|