php-remote-storage
php-remote-storage copied to clipboard
Need to add X-Accel-Redirect in Header for nginx
https://github.com/fkooman/php-remote-storage/blob/06a0b0b598891ed665806f2d8f8781a0d1f63d2e/src/Http/Response.php#L97
You'll also need to add into your nginx config some lines to handles redirects (code below use php-remote-storage as project path)
location /var/www/php-remote-storage/data/storage/ {
internal;
add_header Access-Control-Allow-Origin *;
alias /var/www/php-remote-storage/data/storage/;
}