So I made an app using react.js (MERN). The app has like two 3rd party APIs. I stored the ID keys in an .env
file. For the sake of security, when pushing the code to Github, I had the .env
listed in a .gitignore
file. But with that, how am I supposed to have my EC2 instance get access to the info that was hidden in the .gitignore
?
You have multiple ways to do it. Below are some of them.