1
我正在为我的流星应用程序发送电子邮件验证,但我还将应用程序上传到github。我有以下代码:流星:process.env.MAIL_URL敏感信息
if (Meteor.isServer) {
// This code only runs on the server
Meteor.startup(function() {
// code to run on server at startup
process.env.MAIL_URL = "smtp://" +
encodeURIComponent("myUsernameIsHere") + ":" +
encodeURIComponent("myPasswordIsHere") + '@' +
encodeURIComponent("smtp.gmail.com") + ":" + 465;
..
..
..
}
有没有什么办法让代码我的用户名和密码保密,使其无法在我的公开GitHub的帐户被视为?
感谢