mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-02-12 18:32:44 +00:00
17 lines
398 B
JavaScript
17 lines
398 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",
|
|
ANONYMIZATION_MASK: "XXXX",
|
|
PORT: 5000,
|
|
};
|
|
for (let conf in process.env) {
|
|
if (config[conf] !== undefined) {
|
|
config[conf] = process.env[conf];
|
|
}
|
|
}
|
|
module.exports = config;
|