<?php
declare(strict_types=1);

define('APP_ENV', getenv('APP_ENV') ?: 'production');
define('APP_URL', getenv('APP_URL') ?: '');
define('APP_TIMEZONE', getenv('APP_TIMEZONE') ?: 'Europe/Moscow');
define('SITE_NAME', getenv('SITE_NAME') ?: 'feyaframe.com');
define('SITE_BRAND', getenv('SITE_BRAND') ?: 'FEYAFRAME');

define('TG_BOT_TOKEN', getenv('TG_BOT_TOKEN') ?: '8695166501:AAEHERZyHH6Q8XdlbZ-q1EyXWlTHvRBTOxQ');
define('TG_CHAT_ID', getenv('TG_CHAT_ID') ?: '7455423968');
define('FORM_SUCCESS_URL', getenv('FORM_SUCCESS_URL') ?: '/');
define('FORM_MAX_REQUESTS_PER_10_MIN', (int)(getenv('FORM_MAX_REQUESTS_PER_10_MIN') ?: 4));
define('FORM_MAX_ATTEMPTS_PER_10_MIN', (int)(getenv('FORM_MAX_ATTEMPTS_PER_10_MIN') ?: 12));
define('FORM_DUPLICATE_WINDOW_SECONDS', (int)(getenv('FORM_DUPLICATE_WINDOW_SECONDS') ?: 900));
define('FORM_TELEGRAM_TIMEOUT', (int)(getenv('FORM_TELEGRAM_TIMEOUT') ?: 10));

define('ADMIN_USERNAME', getenv('ADMIN_USERNAME') ?: 'admin');
define('ADMIN_PASSWORD_HASH', getenv('ADMIN_PASSWORD_HASH') ?: '$2y$12$78ZzPJ92ypgA208wWTbHqOPoRPodDw.IRFTr4nxOTq5seUewLXFpW');
define('ADMIN_SESSION_KEY', getenv('ADMIN_SESSION_KEY') ?: 'cms_admin');
define('ADMIN_MAX_UPLOAD_SIZE', 5 * 1024 * 1024);

define('ROOT_DIR', __DIR__);
define('DATA_DIR', ROOT_DIR . '/data');
define('UPLOADS_DIR', __DIR__ . '/uploads');
define('LOGS_DIR', __DIR__ . '/logs');
