php-remote-storage icon indicating copy to clipboard operation
php-remote-storage copied to clipboard

Need to add X-Accel-Redirect in Header for nginx

Open HyroVitalyProtago opened this issue 4 years ago • 1 comments

https://github.com/fkooman/php-remote-storage/blob/06a0b0b598891ed665806f2d8f8781a0d1f63d2e/src/Http/Response.php#L97

HyroVitalyProtago avatar Apr 15 '21 18:04 HyroVitalyProtago

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/;
}

HyroVitalyProtago avatar Apr 16 '21 23:04 HyroVitalyProtago