-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathconfig_example.js
55 lines (55 loc) · 1.8 KB
/
config_example.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
const {
INAT_DB_HOST,
INAT_DB_USER,
INAT_DB_PASS,
INAT_ES_HOST,
INAT_REDIS_HOST,
INAT_RAILS_URL
} = process.env;
module.exports = {
// Host running the iNaturalist Rails app
apiURL: INAT_RAILS_URL || "http://localhost:3000",
// Base URL for the current version of *this* app
currentVersionURL: "http://localhost:4000/v1",
// Whether the Rails app supports SSL requests. For local dev assume it does not
apiHostSSL: false,
writeHostSSL: false,
elasticsearch: {
host: INAT_ES_HOST ? `http://${INAT_ES_HOST}:9200` : "http://localhost:9200"
},
// Note that the database name will be inferred from the NODE_ENV
// environment variable, e.g. `inaturalist_${process.env.NODE_ENV}`, or it
// be set explicitly with process.env.INAT_DB_NAME
database: {
user: INAT_DB_USER || "inaturalist",
host: INAT_DB_HOST || "127.0.0.1",
port: 5432,
geometry_field: "geom",
srid: 4326,
password: INAT_DB_PASS || "inaturalist",
ssl: false
},
tileSize: 512,
debug: true,
logLevel: "info", // only "debug" does anything right now
websiteURL: "http://localhost:3000/",
staticImagePrefix: "http://localhost:3000/attachments/",
userImagePrefix: "/attachments/users/icons/",
jwtSecret: "secret",
jwtApplicationSecret: "application_secret",
imageProcesing: {
// Path to a file listing the taxonomy used in the computer vision model
taxaFilePath: "",
// Path to a directory where uploads should be stored. /tmp/ is fine on most
// *nix systems
uploadsDir: "/tmp/",
// Base URL for the web app returning computer vision results
tensorappURL: "http://localhost:6006"
},
redis: {
host: INAT_REDIS_HOST || "127.0.0.1",
port: 6379
}
// Simulate maintance by returning 503 for all requests
// maintenanceUntil: "Sat, 23 Sep 2023 7:00:00 GMT"
};