Commit 113ef08134c148823b78bb24cdd6d5301b87df25
1 parent
9b6d07d2
Exists in
master
and in
1 other branch
ignore config
Showing
1 changed file
with
0 additions
and
83 deletions
Show diff stats
ais-structure/src/config/config.js
... | ... | @@ -1,83 +0,0 @@ |
1 | -/* ------------- [START SERVER CONFIG VARIABLES] ------------ */ | |
2 | -var config = { | |
3 | - development: { | |
4 | - app_name: "CMF", | |
5 | - app_host: "0.0.0.0", | |
6 | - app_port: "3000", | |
7 | - app_https: false, | |
8 | - KEY: "key1.pem", | |
9 | - CERT: "cert1.pem", | |
10 | - service: { | |
11 | - PANDORA: { | |
12 | - // URI : 'http://25.27.7.151:34618', //JBOSS IOT | |
13 | - URI : 'http://25.27.7.151:34680', //JBOSS DEV | |
14 | - URI_EQX: "http://25.27.7.151:15300", //EQUINOX | |
15 | - //URI: "http://localhost:8080", | |
16 | - KEY: "./PANDORA_CERT/server.key", | |
17 | - CERT: "./PANDORA_CERT/server.pem", | |
18 | - PREFIX: "/phxPartner/v1/partner" | |
19 | - }, | |
20 | - SPW:{ | |
21 | - Name : "SPW API", | |
22 | - POST_SearchCustomer_URL : "http://10.1.3.74:8080", | |
23 | - POST_SearchCustomer_Timeout : 10 | |
24 | - | |
25 | - }, | |
26 | - D01:{ | |
27 | - Name : "CMF DB", | |
28 | - GET_Customer_URL : "http://localhost:8080", | |
29 | - GET_Customer_Timeout : 10, | |
30 | - POST_Customer_URL : "http://localhost:8080", | |
31 | - POST_Customer_Timeout : 10 | |
32 | - | |
33 | - } | |
34 | - }, | |
35 | - log:{ | |
36 | - logTime : 15, | |
37 | - statTime : 2, | |
38 | - detailTime : 15, | |
39 | - summaryTime : 15, | |
40 | - statInterval : 60, | |
41 | - appLogPath : './logTest/', | |
42 | - summaryPath : './logTest/', | |
43 | - statPath : './logTest/', | |
44 | - detailPath : './logTest/', | |
45 | - level : 'debug' | |
46 | - }, | |
47 | - http_req_timeout: 120, | |
48 | - session: 30, //minutes | |
49 | - Default_Timeout: 10, | |
50 | - Uri_length: 1000 | |
51 | - } | |
52 | - }; | |
53 | - | |
54 | - | |
55 | - | |
56 | - /* ------------- [END SERVER CONFIG VARIABLES] ------------ */ | |
57 | - | |
58 | - /* ------------- [START SERVER GET FUNTION] ------------ */ | |
59 | - exports.get = function get(env) { | |
60 | - var cfg = config[env] || config.development; | |
61 | - cfg.app_host = process.env.APP_HOST || cfg.app_host; | |
62 | - cfg.app_port = process.env.APP_PORT || cfg.app_port; | |
63 | - cfg.app_https = process.env.USE_HTTPS || cfg.app_https; | |
64 | - cfg.db_ip_port = process.env.DATABASE_IP_PORT || cfg.db_ip_port; | |
65 | - cfg.pandora_key = process.env.PANDORA_KEY || cfg.pandora_key; | |
66 | - cfg.pandora_cert = process.env.PANDORA_CERT || cfg.pandora_cert; | |
67 | - cfg.KEY = process.env.KEY || cfg.KEY; | |
68 | - cfg.CERT = process.env.CERT || cfg.CERT; | |
69 | - cfg.tmp_path = process.env.TMP_PATH || cfg.tmp_path; | |
70 | - var envService = null; | |
71 | - try { | |
72 | - if (process.env.SERVICE && process.env.SERVICE.length > 0) { | |
73 | - envService = JSON.parse(process.env.SERVICE); | |
74 | - } | |
75 | - } catch (error) { | |
76 | - envService = null; | |
77 | - } | |
78 | - cfg.service = envService != null ? envService : cfg.service; | |
79 | - return cfg; | |
80 | - }; | |
81 | - | |
82 | - /* ------------- [END SERVER GET FUNTION] ------------ */ | |
83 | - | |
84 | 0 | \ No newline at end of file |