Files
web/config/http.php

30 lines
720 B
PHP

<?php
/*
* Copyright (c) 2025, Антон Аксенов
* This file is part of iptv.axenov.dev web interface
* MIT License: https://git.axenov.dev/IPTV/web/src/branch/master/LICENSE
*/
declare(strict_types=1);
/**
* @see https://docs.guzzlephp.org/en/stable/request-options.html
*/
return [
'base_url' => env('APP_URL', 'http://localhost:8080'),
'timeout' => 25,
'connect_timeout' => 7,
'http_errors' => true,
'synchronous' => false,
'headers' => [
'User-Agent' => env('USER_AGENT'),
],
'allow_redirects' => [
'max' => 5,
'strict' => false,
'referer' => false,
'protocols' => ['http', 'https'],
'track_redirects' => false
]
];