mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-02-13 19:02:45 +00:00
15 lines
354 B
JavaScript
15 lines
354 B
JavaScript
const config = {
|
|
CLIENT_ID: null,
|
|
CLIENT_SECRET: null,
|
|
GITHUB_TOKEN: null,
|
|
MAX_FILE_SIZE: 10 * 1024 * 1024, // in b
|
|
MAX_REPO_SIZE: 8 * 1024, // in kb
|
|
AUTH_CALLBACK: "http://localhost:5000/github/auth",
|
|
};
|
|
for (let conf in process.env) {
|
|
if (config[conf] !== undefined) {
|
|
config[conf] = process.env[conf];
|
|
}
|
|
}
|
|
module.exports = config;
|