forked from SciCatProject/scicatlive
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.local.js
35 lines (35 loc) · 1.12 KB
/
config.local.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
var p = require("../package.json");
var version = p.version.split(".").shift();
module.exports = {
restApiRoot: "/api" + (version > 0 ? "/v" + version : ""),
host: process.env.HOST || "0.0.0.0",
port: process.env.PORT || 3000,
pidPrefix: "PID.SAMPLE.PREFIX",
doiPrefix: "DOI.SAMPLE.PREFIX",
policyPublicationShiftInYears: 3,
policyRetentionShiftInYears: 10,
metadataKeysReturnLimit:100,
site: "SAMPLE-SITE",
facilities: ["Facility1", "Facility2"],
jobMessages: {
jobSubmitted: "Submitted for immediate execution",
jobSubmittedDelayed: "Submitted for delayed execution",
jobForwarded: "Forwarded to archive system",
jobStarted: "Execution started",
jobInProgress: "Finished by %i percent",
jobSuccess: "Successfully finished",
jobError: "Finished with errors",
jobCancel: "Cancelled",
},
smtpSettings: {
host: "SMTP.YOUR.DOMAIN",
port: 25,
secure: false,
},
smtpMessage: {
from: "scicatarchivemanager@YOUR.DOMAIN",
to: undefined,
subject: "[SciCat " + process.env.NODE_ENV + "]",
text: undefined, // can also set html key and this will override this
},
};