Files
MoneyFlix/crm/Redirects/config.php
T
1sonhador 9d43854277 feat: Initial MoneyFlix project setup
- Created separate MoneyFlix project directory
- Copied Node.js redirector from production server
- Added CRM PHP code (Redirects module, Core classes, Config, Routes, Views)
- Created comprehensive documentation (README_MONEYFLIX.md)
- Added sync script to keep CRM code updated (sync-from-crm.sh)
- Configured .gitignore for Node.js and PHP
- Set up proper project structure for multi-client isolation

This separates MoneyFlix from the main CRM to avoid confusion
between different client systems and provides a dedicated
environment for MoneyFlix-specific development and maintenance.
2025-10-03 12:09:41 +01:00

92 lines
3.3 KiB
PHP

<?php
return [
'redirect' => [
'default_status' => 'active',
'statuses' => ['active', 'inactive', 'deleted'],
'types' => ['301', '302', 'meta', 'javascript'],
'targeting_options' => [
'geo' => true,
'device' => true,
'browser' => true,
'time' => true,
'referer' => true
]
],
'tracking' => [
'enabled' => true,
'retention_days' => 90,
'aggregation_enabled' => true,
'max_filters_per_redirect' => 10
],
'filters' => [
'types' => [
'browser' => [
'label' => 'Browser',
'operators' => ['equals', 'contains', 'in', 'not_in'],
'values' => ['Chrome', 'Firefox', 'Safari', 'Edge', 'Opera', 'IE']
],
'os' => [
'label' => 'Operating System',
'operators' => ['equals', 'contains', 'in', 'not_in'],
'values' => ['Windows', 'macOS', 'Linux', 'iOS', 'Android']
],
'device_type' => [
'label' => 'Device Type',
'operators' => ['equals', 'in', 'not_in'],
'values' => ['desktop', 'mobile', 'tablet', 'bot']
],
'country' => [
'label' => 'Country',
'operators' => ['equals', 'in', 'not_in'],
'values' => ['PT', 'US', 'BR', 'ES', 'FR', 'DE', 'IT', 'NL', 'BE', 'CH']
],
'city' => [
'label' => 'City',
'operators' => ['equals', 'contains', 'starts_with', 'ends_with']
],
'region' => [
'label' => 'Region',
'operators' => ['equals', 'contains', 'starts_with', 'ends_with']
],
'timezone' => [
'label' => 'Timezone',
'operators' => ['equals', 'contains', 'in', 'not_in'],
'values' => ['Europe/Lisbon', 'America/New_York', 'America/Sao_Paulo', 'Europe/London']
],
'language' => [
'label' => 'Language',
'operators' => ['equals', 'starts_with', 'in', 'not_in'],
'values' => ['pt-PT', 'en-US', 'es-ES', 'fr-FR', 'de-DE', 'it-IT']
],
'referer' => [
'label' => 'Referer',
'operators' => ['contains', 'starts_with', 'ends_with', 'regex']
],
'hour' => [
'label' => 'Hour of Day',
'operators' => ['equals', 'greater_than', 'less_than', 'between'],
'values' => range(0, 23)
],
'asn' => [
'label' => 'ASN',
'operators' => ['equals', 'contains', 'in', 'not_in']
],
'isp' => [
'label' => 'ISP',
'operators' => ['equals', 'contains', 'starts_with', 'ends_with']
]
]
],
'performance' => [
'rate_limit_per_ip' => 100,
'cache_enabled' => true,
'cache_ttl' => 300, // 5 minutes
'max_response_time' => 1000 // 1 second
],
'security' => [
'allowed_domains' => [],
'blocked_domains' => [],
'validate_urls' => true,
'sanitize_inputs' => true
]
];