diff --git a/lib/config.js b/lib/config.js index 2c191dd..3e52654 100644 --- a/lib/config.js +++ b/lib/config.js @@ -1,31 +1,9 @@ - -/* Streamie configuration - -Sample: - { "hostNameAndOptionalPort": "streamie.com:8888", - "oauthKey": "asfsadgsadgsdfg", - "oauthSecret": "sdfgsdfgsdfgsdfgsdfg", - "port": "8888", - "imgurKey": "sdfgsdfgsdfg", // Optional + "oauthKey": "YgY", + "oauthSecret": "zjlkO2ma0rguWy1x2OwTWxB", + "port": 8888, + "imgurKey": "sdfgsdfgsdfgsdfgsdfg", "staticFilesExpireSeconds": 0, - "siteStreamOAuthToken": "efasdfasdf" // Optional -} - -*/ - - - -function init() { - var filename = __dirname+"/../config.json"; - var text = require("fs").readFileSync(filename); - if(!text) { - throw new Error("Couldn't read config file "+filename); - } - var obj = JSON.parse(text); - console.log("Successfully read and parsed config file \n"+JSON.stringify(obj, null, " ")+"\n"); - return obj; -} - -exports.config = init(); \ No newline at end of file + "siteStreamOAuthToken": "asdasdfasd" +} \ No newline at end of file