Is it safe to save keyfiles in Meteor root?

时间:2017-08-05 10:30:02

标签: json meteor

I am working with a GA module that requires a pem file for authorisation. I first tried saving it in settings.json but I get an error that it cannot find the pemfile.

To fix this I created a server only script which loads the contents of my pem file from settings.json and writes it as a file to the meteor root.

Both are not committed to git. Is it safe to keep the pem file there or is there a better solution?

1 个答案:

答案 0 :(得分:0)

将文件放在/private/server下,而不是根目录。