<?php

return [
    'name' => getenv('APP_NAME') ?: 'WiFi Access',
    'url' => rtrim(getenv('APP_URL') ?: 'http://localhost/testing/public', '/'),
    'env' => getenv('APP_ENV') ?: 'local',
    'session' => [
        'name' => getenv('SESSION_NAME') ?: 'wifi_session',
        'lifetime' => (int) (getenv('SESSION_LIFETIME') ?: 1800),
    ],
    'security' => [
        'rate_limit_max' => (int) (getenv('RATE_LIMIT_MAX') ?: 5),
        'rate_limit_window' => (int) (getenv('RATE_LIMIT_WINDOW') ?: 900),
    ],
];
