ruby - Storing Private Files on Heroku -


i have scenario here related storing private files on heroku.

i need store private files( certificates , keys sending push notifications ios devices) in heroku app(uses cedar stack), can push these files heroku server through git storing on git not secure these private. so, want secure copy (scp) these files heroku server heroku doesnt allow incoming connections , storing these files on s3 bucket not great solution takes time file s3 bucket increases delay in sending each push notification when in loop.

i'm kinda lost finding right solution scenario. gem https://github.com/nicoskaralis/pushmeup accepts private files either file object or string (that points out path of files on server). heroku allows set config vars(only strings) can used in environment not files.

could please suggest me workarounds in scenario, thank you.

you can't use file system in heroku, hence need different storage system.

you can either use cloud-system storage such amazon s3, , encrypt connection , data transferred ensure information stay private. delay can minimized using memory-based cache system, such memcached.

another approach store data in database, binary information. can either use same application database, or database designed that.


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -