Created
August 26, 2012 12:17
-
-
Save rudiedirkx/3478362 to your computer and use it in GitHub Desktop.
Nodejs requirable secrets
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// <?php /* | |
exports.user = 'root'; | |
exports.password = 'secret password'; | |
exports.database = 'games'; | |
// */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var dbConfig = require('./dbsecrets.js.php'); | |
// Nodejs now knows dbConfig.password | |
// If you go to ..../dbsecrets.js.php in the browser, you won't see anything. | |
// Obscure javascript? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment