Almost fixed streaming. The only thing left is to fix headers.
This commit is contained in:
+2
-2
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user