Last active
February 9, 2022 13:33
-
-
Save oakhole/63b4ecd7d2e5f5d32a61225f7e1fc837 to your computer and use it in GitHub Desktop.
Download mp3 from nginx server
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 ~ ^.*/(?P<request_basename>[^/]+\.(mp3))$ { | |
add_header Content-Disposition 'attachment; filename="$request_basename"'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment