Created
March 14, 2015 08:40
-
-
Save eteubert/a27d72351b77f5bfba14 to your computer and use it in GitHub Desktop.
Podlove Publisher: Forced Downloads
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<FilesMatch "\.(mp3|m4a|ogg|oga|opus|flac)$"> | |
Header set Content-Disposition "attachment" | |
</FilesMatch> | |
AddType audio/mpeg mp3 | |
AddType audio/mp4 m4a | |
AddType audio/ogg oga ogg | |
AddType audio/opus opus | |
AddType audio/flac flac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
location ~* (mp3|m4a|ogg|oga|opus|flac)$ { | |
add_header Content-Disposition "attachment; filename=$1"; | |
} | |
http { | |
types { | |
audio/mpeg mp3; | |
audio/mp4 m4a; | |
audio/ogg oga ogg; | |
audio/opus opus; | |
audio/flac flac; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment