Merge pull request #1858 from shackbarth/1854
[xtuple] / node-datasource / sample_config.js
1 /*jshint node:true, indent:2, curly:false, eqeqeq:true, immed:true, latedef:true,
2 newcap:true, noarg:true, regexp:true, undef:true, strict:true, trailing:true, white:true */
3 /*global */
4
5 (function () {
6   "use strict";
7
8   module.exports = {
9     processName: "node-datasource",
10     allowMultipleInstances: true,
11     client: {
12       freeDemo: false,
13       encoding: "rjson"
14     },
15     datasource: {
16       debugging: false,
17       debugDatabase: false,
18       enhancedAuthKey: "xTuple",
19       sessionTimeout: 60,
20       requireCache: true,
21       pgPoolSize: 15,
22       pgWorker: false,
23       bindAddress: "0.0.0.0",
24       redirectPort: 8888,
25       // proxyPort is the port the app will be redirected to
26       // this is useful if there is a proxy in front of the app listening
27       // on a different port
28       proxyPort: null,
29       port: 8443,
30       encryptionKeyFile: "./lib/private/encryption_key.txt",
31       keyFile: "./lib/private/key.pem",
32       certFile: "./lib/private/server.crt",
33       caFile: null, // needs to be an array of strings
34       saltFile: "./lib/private/salt.txt",
35       xTupleDbDir: "/usr/local/xtuple/databases",
36       psqlPath: "psql",
37       nodePath: "node",
38
39       // These fields need to be filled in for the datasource
40       // to be able to email
41       smtpHost: "",
42       smtpPort: 587,
43       smtpUser: "",
44       smtpPassword: "",
45       printer: "",
46
47       // these properties are dynamically registered with the
48       // node discovery service
49
50       // the unique identifer registered for this service/instance
51       name: "dev-datasource",
52
53       // human-friendly description of this service
54       description: "NA",
55
56       // REQUIRED - the ip address or hostname for this instance
57       hostname: "localhost",
58
59       // human-friendly location identifier for various cloud, physical
60       // servers, etc.
61       location: "NA",
62       // Add each database to the array.
63       databases: ["dev"],
64       testDatabase: "" // this must remain empty for production datasources
65     },
66     integration: {
67     },
68     extensionRoutes: [],
69     databaseServer: {
70       hostname: "localhost",
71       port: 5432,
72       user: "admin",
73       password: "admin"
74     },
75     biServer: {
76       bihost: "localhost",
77       port: 8080,
78       httpsport: 8443,
79       catalog: "xTuple",
80       tenantname: "default",
81       restkeyfile: "/etc/xtuple/lib/rest-keys"
82     }
83   };
84 }());