I would like to force download video files

I would like to force the file downloads, for this I need to add those rules on Nginx:

https://++++++++.com/force-file-download-nginx-apache/

It needs to be modified to force the Videos Download.

Can this be implemented on Nginx?