Almost fixed streaming. The only thing left is to fix headers.

This commit is contained in:
magnolia-fan
2011-04-11 12:19:47 +04:00
parent 71ad3d17e6
commit 4d2c32ec8e
3 changed files with 17 additions and 7 deletions
+2 -2
View File
@@ -32,13 +32,13 @@ location ~* ^/proxy-stream/(.*?)/(.*?)/(.*?)/(.*?)/(.*) {
# when save content to the disk
proxy_hide_header Content-Type;
proxy_hide_header Content-Disposition;
add_header Content-Type 'audio/mpeg';
add_header Content-Disposition 'inline';
add_header Content-Disposition 'attachment; filename=audio.mp3';
# Do not touch local disks when proxying
# content to clients
proxy_max_temp_file_size 0;
# Download the file and send it to client
resolver 192.168.0.1;
proxy_pass $download_url;
}