Skip to content
This repository has been archived by the owner on Feb 15, 2019. It is now read-only.

Untitled #38

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 6 additions & 28 deletions lib/config.js
Original file line number Diff line number Diff line change
@@ -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();
"siteStreamOAuthToken": "asdasdfasd"
}