Protecting the content of public/ in a Rails app

后端 未结 5 1095
刺人心
刺人心 2020-12-23 17:48

I\'m maintaining a Rails app that has content in the public/ folder that will now need to be protected by a login. We\'re considering moving those folders of files into a p

5条回答
  •  囚心锁ツ
    2020-12-23 18:15

    You could use Amazon S3. You could use the controllers to generate and serve up the urls behind your secure area, and it also has a feature that basically makes resources available only for a certain amount of time once a url is generated.

    Check out this url: http://docs.amazonwebservices.com/AmazonS3/2006-03-01/index.html?RESTAuthentication.html

提交回复
热议问题