<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
takethelead / laravel-storyblok-file-proxy example snippets
return [
/*
|--------------------------------------------------------------------------
| Base url
|--------------------------------------------------------------------------
|
| Define the base url to proxy files through.
|
| Ex. 'files' will result in https://appurl.test/files/{fileSlug}
|
*/
'base_url' => 'files',
/*
|--------------------------------------------------------------------------
| Middleware
|--------------------------------------------------------------------------
|
| Define the route middleware (groups) where the proxy route should be
| wrapped in.
|
|
*/
'middleware' => [
'web',
],
/*
|--------------------------------------------------------------------------
| Proxy urls
|--------------------------------------------------------------------------
|
| Define all url types that should be formatted. Each proxy should
| have at least a "type" and "url" property. The defined base url
| will be swapped with a local url.
|
*/
'proxy_urls' => [
[
'type' => 'images',
'url' => 'https://img2.storyblok.com',
],
[
'type' => 'other',
'url' => 'https://a.storyblok.com',
],
],
];