Created
February 7, 2019 06:13
-
-
Save D4R4/f40717e598625732e6a90d0bc8df04d7 to your computer and use it in GitHub Desktop.
It should probably be placed before the "location /" part of the configuration, also remember to clear cache
This file contains hidden or 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>[^/]+\.(mp4))$ { | |
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