Revert "Renaming Files having BluePrint to have Blueprint"
[ccsdk/cds.git] / cds-ui / server / src / config / app-config.ts
1 /**
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 */
16 export const appConfig = Object.freeze({
17     action: Object.freeze({
18         // deployBlueprint: Object.freeze({
19             grpcEnabled: false // process.env.APP_ACTION_DEPLOY_BLUEPRINT_GRPC_ENABLED || true
20         // })
21     })
22 });
23
24 // 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 // });
30
31 export const processorApiConfig = Object.freeze({
32     http: Object.freeze({
33         url: process.env.API_BLUEPRINT_PROCESSOR_HTTP_BASE_URL || "http://localhost:8080/api/v1",
34         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