-
-
Notifications
You must be signed in to change notification settings - Fork 389
Expand file tree
/
Copy pathconfig.js
More file actions
14 lines (13 loc) · 562 Bytes
/
config.js
File metadata and controls
14 lines (13 loc) · 562 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Add values if you are not using env vars
const fs = require("fs");
require("dotenv").config();
module.exports = {
session_key: process.env.SESSION_KEY,
timezone:
process.env.TIMEZONE || Intl.DateTimeFormat().resolvedOptions().timeZone,
pmpermit_enabled: process.env.PMPERMIT_ENABLED || "true",
mongodb_url: process.env.MONGODB_URL || process.env.MONGO_URL || "",
default_tr_lang: process.env.DEFAULT_TR_LANG || "en",
enable_delete_alert: process.env.ENABLE_DELETE_ALERT || "true",
ocr_space_api_key: process.env.OCR_SPACE_API_KEY || "",
};