issue #22461 working for now from invoice->gear>print
[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       keyFile: "./lib/private/key.pem",
31       certFile: "./lib/private/server.crt",
32       caFile: null, // needs to be an array of strings
33       saltFile: "./lib/private/salt.txt",
34       xTupleDbDir: "/usr/local/xtuple/databases",
35       psqlPath: "psql",
36       nodePath: "node",
37
38       // These fields need to be filled in for the datasource
39       // to be able to email
40       smtpHost: "",
41       smtpPort: 587,
42       smtpUser: "",
43       smtpPassword: "",
44       printer: "",
45
46       // these properties are dynamically registered with the
47       // node discovery service
48
49       // the unique identifer registered for this service/instance
50       name: "dev-datasource",
51
52       // human-friendly description of this service
53       description: "NA",
54
55       // REQUIRED - the ip address or hostname for this instance
56       hostname: "localhost",
57
58       // human-friendly location identifier for various cloud, physical
59       // servers, etc.
60       location: "NA",
61       // Add each database to the array.
62       databases: ["dev"],
63       testDatabase: "" // this must remain empty for production datasources
64     },
65     integration: {
66     },
67     extensionRoutes: [],
68     databaseServer: {
69       hostname: "localhost",
70       port: 5432,
71       user: "admin",
72       password: "admin"
73     },
74     biServer: {
75       bihost: "localhost",
76       port: 8080,
77       httpsport: 8443,
78       catalog: "xTuple",
79       tenantname: "default",
80       restkeyfile: "/etc/xtuple/lib/rest-keys"
81     }
82   };
83 }());