blob: a2cebe59d9dfc11942e1383c905c9938cec702ad [file] [log] [blame]
Nirvan Ramjuttun2ac64f22019-05-30 14:07:23 -04001/**
2 ~ Copyright © 2019 Bell Canada.
3 ~
4 ~ Licensed under the Apache License, Version 2.0 (the "License");
5 ~ you may not use this file except in compliance with the License.
6 ~ You may obtain a copy of the License at
7 ~
8 ~ http://www.apache.org/licenses/LICENSE-2.0
9 ~
10 ~ Unless required by applicable law or agreed to in writing, software
11 ~ distributed under the License is distributed on an "AS IS" BASIS,
12 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 ~ See the License for the specific language governing permissions and
14 ~ limitations under the License.
15*/
16export const appConfig = Object.freeze({
17 action: Object.freeze({
18 deployBlueprint: Object.freeze({
19 grpcEnabled: process.env.APP_ACTION_DEPLOY_BLUEPRINT_GRPC_ENABLED || true
20 })
21 })
22});
23
Shaaban Ebrahim6c6ec712019-10-09 18:12:44 +020024// export const controllerApiConfig = Object.freeze({
25// http: Object.freeze({
26// url: process.env.API_BLUEPRINT_PROCESSOR_HTTP_BASE_URL || "http://localhost:8081/api/v1",
27// authToken: process.env.API_BLUEPRINT_PROCESSOR_HTTP_AUTH_TOKEN || "Basic Y2NzZGthcHBzOmNjc2RrYXBwcw=="
28// })
29// });
Nirvan Ramjuttun2ac64f22019-05-30 14:07:23 -040030
31export const processorApiConfig = Object.freeze({
32 http: Object.freeze({
Arundathi Patild8205522019-10-03 19:27:56 +053033 url: process.env.API_BLUEPRINT_PROCESSOR_HTTP_BASE_URL || "http://localhost:8081/api/v1",
Nirvan Ramjuttun2ac64f22019-05-30 14:07:23 -040034 authToken: process.env.API_BLUEPRINT_PROCESSOR_HTTP_AUTH_TOKEN || "Basic Y2NzZGthcHBzOmNjc2RrYXBwcw=="
35 }),
36 grpc: Object.freeze({
37 host: process.env.API_BLUEPRINT_PROCESSOR_GRPC_HOST || "localhost",
38 port: process.env.API_BLUEPRINT_PROCESSOR_GRPC_PORT || 9111,
39 authToken: process.env.API_BLUEPRINT_PROCESSOR_GRPC_AUTH_TOKEN || "Basic Y2NzZGthcHBzOmNjc2RrYXBwcw==",
40 bluePrintManagement: Object.freeze({
41 //this path is relative to 'dist' folder
42 protoPath: __dirname + '../../../proto/BluePrintManagement.proto'
43 })
44 })
45});
46
47